Class: Traduce::Verb
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Traduce::Verb
- Defined in:
- lib/traduce.rb
Instance Method Summary collapse
- #ar? ⇒ Boolean (also: #ar_verb?)
- #ending ⇒ Object
- #er? ⇒ Boolean (also: #er_verb?)
-
#initialize(verb) ⇒ Verb
constructor
A new instance of Verb.
- #ir? ⇒ Boolean (also: #ir_verb?)
Constructor Details
#initialize(verb) ⇒ Verb
Returns a new instance of Verb.
16 17 18 19 |
# File 'lib/traduce.rb', line 16 def initialize(verb) super @verb = verb end |
Instance Method Details
#ar? ⇒ Boolean Also known as: ar_verb?
26 27 28 |
# File 'lib/traduce.rb', line 26 def ar? ending == "ar" end |
#ending ⇒ Object
36 37 38 |
# File 'lib/traduce.rb', line 36 def ending @verb[-2, 2] end |
#er? ⇒ Boolean Also known as: er_verb?
21 22 23 |
# File 'lib/traduce.rb', line 21 def er? ending == "er" end |
#ir? ⇒ Boolean Also known as: ir_verb?
31 32 33 |
# File 'lib/traduce.rb', line 31 def ir? ending == "ir" end |