Class: Linguistics::Latin::Verb::LatinVerb::InfinitivesFactory

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/latinverb_infinitives/infinitives_factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(verb) ⇒ InfinitivesFactory

Returns a new instance of InfinitivesFactory.



16
17
18
# File 'lib/latinverb_infinitives/infinitives_factory.rb', line 16

def initialize(verb)
  @verb = verb
end

Instance Method Details

#infinitivesObject



20
21
22
23
24
25
26
27
# File 'lib/latinverb_infinitives/infinitives_factory.rb', line 20

def infinitives
  return irregular if irregular?
  if deponent? || semideponent?
    deponent
  else
    standard
  end
end