Class: Traduce::Verb

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/traduce.rb

Instance Method Summary collapse

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?

Returns:

  • (Boolean)


26
27
28
# File 'lib/traduce.rb', line 26

def ar?
  ending == "ar"
end

#endingObject



36
37
38
# File 'lib/traduce.rb', line 36

def ending
  @verb[-2, 2]
end

#er?Boolean Also known as: er_verb?

Returns:

  • (Boolean)


21
22
23
# File 'lib/traduce.rb', line 21

def er?
  ending == "er"
end

#ir?Boolean Also known as: ir_verb?

Returns:

  • (Boolean)


31
32
33
# File 'lib/traduce.rb', line 31

def ir?
  ending == "ir"
end