Class: ODDB::View::TestDescription::StubModel

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) de



62
63
64
# File 'test/test_view/descriptionform.rb', line 62

def de
  description(:de)
end

- (Object) description(language)



56
57
58
59
60
61
# File 'test/test_view/descriptionform.rb', line 56

def description(language)
  {
    'de'  => 'foo',
    'fr'  => 'bar',
  }[language.to_s]
end

- (Object) fr



65
66
67
# File 'test/test_view/descriptionform.rb', line 65

def fr
  description(:fr)
end