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

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

Direct Known Subclasses

DeponentInfinitivizer

Defined Under Namespace

Classes: PassiveInfinitiveFactory

Instance Method Summary collapse

Constructor Details

#initialize(verb) ⇒ Infinitivizer

Returns a new instance of Infinitivizer.



11
12
13
# File 'lib/latinverb_infinitives/infinitives_factory/infinitivizer.rb', line 11

def initialize(verb)
  @verb = verb
end

Instance Method Details

#future_active_infinitiveObject



30
31
32
# File 'lib/latinverb_infinitives/infinitives_factory/infinitivizer.rb', line 30

def future_active_infinitive
  future_active_participle.sub(/,.*/,'') + " esse"
end

#future_passive_infinitiveObject



42
43
44
# File 'lib/latinverb_infinitives/infinitives_factory/infinitivizer.rb', line 42

def future_passive_infinitive
  supine[:accusative] + " īrī"
end

#infinitivesObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/latinverb_infinitives/infinitives_factory/infinitivizer.rb', line 15

def infinitives
  {
    :present_active_infinitive  => present_active_infinitive,
    :perfect_active_infinitive  => perfect_active_infinitive,
    :future_active_infinitive   => future_active_infinitive,
    :present_passive_infinitive => present_passive_infinitive,
    :perfect_passive_infinitive => perfect_passive_infinitive,
    :future_passive_infinitive  => future_passive_infinitive
  }
end

#perfect_active_infinitiveObject



26
27
28
# File 'lib/latinverb_infinitives/infinitives_factory/infinitivizer.rb', line 26

def perfect_active_infinitive
  first_person_perfect + "sse"
end

#perfect_passive_infinitiveObject



38
39
40
# File 'lib/latinverb_infinitives/infinitives_factory/infinitivizer.rb', line 38

def perfect_passive_infinitive
  perfect_passive_participle + " esse"
end

#present_passive_infinitiveObject



34
35
36
# File 'lib/latinverb_infinitives/infinitives_factory/infinitivizer.rb', line 34

def present_passive_infinitive
  PassiveInfinitiveFactory.new(@verb).passive_infinitive
end