Class: Linguistics::Latin::Verb::LatinVerb::Infinitivizer::PassiveInfinitiveVactory
- Inherits:
-
Object
- Object
- Linguistics::Latin::Verb::LatinVerb::Infinitivizer::PassiveInfinitiveVactory
- 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
-
#initialize(verb) ⇒ PassiveInfinitiveVactory
constructor
A new instance of PassiveInfinitiveVactory.
- #passive_infinitive ⇒ Object
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_infinitive ⇒ Object
24 25 26 |
# File 'lib/latinverb/components/passive_infinitive_factory.rb', line 24 def passive_infinitive present_active_infinitive.gsub(*mutation_for_type) end |