Class: Past
- Inherits:
-
Object
- Object
- Past
- Defined in:
- lib/arabic_conjugator/past_tense.rb
Instance Method Summary collapse
- #conjugate ⇒ Object
-
#initialize(verb) ⇒ Past
constructor
A new instance of Past.
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
#conjugate ⇒ Object
8 9 10 |
# File 'lib/arabic_conjugator/past_tense.rb', line 8 def conjugate @base + PAST_AFFIXES[@pronoun] end |