Class: ODDB::View::TestDescription::StubLookandfeel

Inherits:
Object
  • Object
show all
Defined in:
test/test_view/descriptionform.rb

Instance Method Summary (collapse)

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

- (Object) method_missing(*args)



28
29
30
# File 'test/test_view/descriptionform.rb', line 28

def method_missing(*args)
  ''
end

Instance Method Details

- (Object) attributes(key)



25
26
27
# File 'test/test_view/descriptionform.rb', line 25

def attributes(key)
  {}
end

- (Object) languages



15
16
17
# File 'test/test_view/descriptionform.rb', line 15

def languages
  %w{de fr}
end

- (Object) lookup(key)



18
19
20
21
22
23
24
# File 'test/test_view/descriptionform.rb', line 18

def lookup(key)
    {
      :de   => 'Deutsch',
    :fr    =>  'Französisch',
    :update  => 'Speichern',  
  }[key]
end