class Declension::Word

Attributes

word[RW]

Public Class Methods

new(word) click to toggle source
# File lib/declension/word.rb, line 5
def initialize(word)
  self.word = word
end

Public Instance Methods

inflect(grammar_case, options) click to toggle source
# File lib/declension/word.rb, line 9
def inflect(grammar_case, options)
  Declension::Languages::Lv.new(word).inflect(grammar_case.to_sym, options)
end