Class: Declension::Languages::Base
- Inherits:
-
Object
- Object
- Declension::Languages::Base
- Defined in:
- lib/declension/languages/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#word ⇒ Object
Returns the value of attribute word.
Instance Method Summary collapse
- #inflect(grammar_case, options = {}) ⇒ Object
-
#initialize(word) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(word) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/declension/languages/base.rb', line 6 def initialize(word) self.word = word end |
Instance Attribute Details
#word ⇒ Object
Returns the value of attribute word.
4 5 6 |
# File 'lib/declension/languages/base.rb', line 4 def word @word end |
Instance Method Details
#inflect(grammar_case, options = {}) ⇒ Object
10 11 12 |
# File 'lib/declension/languages/base.rb', line 10 def inflect(grammar_case, = {}) word end |