Class: Linguistics::Latin::Verb::LatinVerb::Infinitivizer::PassiveInfinitiveFactory

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/latinverb_infinitives/infinitives_factory/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) ⇒ PassiveInfinitiveFactory

Returns a new instance of PassiveInfinitiveFactory.



21
22
23
# File 'lib/latinverb_infinitives/infinitives_factory/passive_infinitive_factory.rb', line 21

def initialize(verb)
  @verb = verb
end

Instance Method Details

#passive_infinitiveObject



25
26
27
# File 'lib/latinverb_infinitives/infinitives_factory/passive_infinitive_factory.rb', line 25

def passive_infinitive
  present_active_infinitive.gsub(*mutation_for_type)
end