Module: Gamefic::Grammar::Conjugator::ClassMethods
- Included in:
- Verbs
- Defined in:
- lib/gamefic/grammar/conjugator.rb
Constant Summary collapse
- @@conjugated_verbs =
{}
Instance Method Summary collapse
Instance Method Details
#conjugate(infinitive, tense, *forms) ⇒ Object
8 9 10 11 |
# File 'lib/gamefic/grammar/conjugator.rb', line 8 def conjugate infinitive, tense, *forms @@conjugated_verbs[infinitive] ||= {} @@conjugated_verbs[infinitive][tense] = VerbSet.new(infinitive, *forms) end |
#conjugated_verbs ⇒ Object
12 13 14 |
# File 'lib/gamefic/grammar/conjugator.rb', line 12 def conjugated_verbs @@conjugated_verbs end |