Class: Linguistics::Latin::Verb::LatinVerb::Infinitivizer::PassiveInfinitiveVactory

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/latinverb/components/passive_infinitive_factory.rb

Constant Summary collapse

MAPPING =
{
  First: [/(.*)e$/,"\\1ī"],
  Second: [/(.*)e$/,"\\1ī"],
  ThirdIO: [/(.*)ere$/,"\\1ī"],
  Third: [/(.*)ere$/,"\\1ī"],
  Fourth: [/(.*)e$/,"\\1ī"],
  Irregular: [/(.*)/,"\\1"]
}

Instance Method Summary collapse

Constructor Details

#initialize(verb) ⇒ PassiveInfinitiveVactory

Returns a new instance of PassiveInfinitiveVactory.



20
21
22
# File 'lib/latinverb/components/passive_infinitive_factory.rb', line 20

def initialize(verb)
  @verb = verb
end

Instance Method Details

#passive_infinitiveObject



24
25
26
# File 'lib/latinverb/components/passive_infinitive_factory.rb', line 24

def passive_infinitive
  present_active_infinitive.gsub(*mutation_for_type)
end