Class: Present

Inherits:
Object
  • Object
show all
Defined in:
lib/arabic_conjugator/present_tense.rb

Instance Method Summary collapse

Constructor Details

#initialize(verb) ⇒ Present



3
4
5
6
# File 'lib/arabic_conjugator/present_tense.rb', line 3

def initialize(verb)
  @base = verb.base
  @pronoun = verb.pronoun
end

Instance Method Details

#conjugateObject



8
9
10
# File 'lib/arabic_conjugator/present_tense.rb', line 8

def conjugate
  PRESENT_AFFIXES[@pronoun][0] + @base + PRESENT_AFFIXES[@pronoun][1]
end