Class: Conjugators::ActionVerbs::ImperativeMood
- Inherits:
-
Object
- Object
- Conjugators::ActionVerbs::ImperativeMood
- Extended by:
- Shared
- Defined in:
- lib/conjugators/action_verbs/imperative_mood.rb
Instance Method Summary collapse
- #conjugate! ⇒ Object
-
#initialize(verb) ⇒ ImperativeMood
constructor
Note, MVSKOKE language here.
Methods included from Shared
irregulars_three_way, irregulars_two_way, person_markers
Constructor Details
#initialize(verb) ⇒ ImperativeMood
Note, MVSKOKE language here
6 7 8 9 10 11 12 |
# File 'lib/conjugators/action_verbs/imperative_mood.rb', line 6 def initialize(verb) @verb = verb raise "Invalid verb. Verb must end with 'etv'." unless @verb.end_with?("etv") @irregular = !!irregulars[@verb] end |
Instance Method Details
#conjugate! ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/conjugators/action_verbs/imperative_mood.rb', line 14 def conjugate! { verb: @verb, second_person_singular: { basic: conjugate(tense: :conjugate_2ps, type: :basic), polite: conjugate(tense: :conjugate_2ps, type: :polite), do_not: conjugate(tense: :conjugate_2ps, type: :do_not), }, second_person_plural: { basic: conjugate(tense: :conjugate_2pp, type: :basic), polite: conjugate(tense: :conjugate_2pp, type: :polite), do_not: conjugate(tense: :conjugate_2pp, type: :do_not), lets: conjugate(tense: :conjugate_2pp, type: :lets), }, } end |