Class: Past

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

Instance Method Summary collapse

Constructor Details

#initialize(verb) ⇒ Past

Returns a new instance of Past.



3
4
5
6
# File 'lib/arabic_conjugator/past_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/past_tense.rb', line 8

def conjugate
  @base + PAST_AFFIXES[@pronoun]
end