Class: LLT::Form::Verb

Inherits:
LLT::Form show all
Defined in:
lib/llt/form/verb.rb

Instance Attribute Summary

Attributes inherited from LLT::Form

#casus, #classification, #comparison_sign, #ending, #extension, #genus, #index, #inflection_class, #modus, #numerus, #particle, #persona, #place, #prefix, #sexus, #stem, #stems, #string, #suffix, #tempus

Instance Method Summary collapse

Methods inherited from LLT::Form

#functions, #initialize, #segmentized, #to_s

Constructor Details

This class inherits a constructor from LLT::Form

Instance Method Details

#contracted?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/llt/form/verb.rb', line 15

def contracted?
  @contraction
end

#init_functionsObject



8
9
10
11
12
13
# File 'lib/llt/form/verb.rb', line 8

def init_functions
  f = super
  # if it has a name, it's an irregular verb
  f << @inflection_class if @inflection_class.is_a?(Symbol)
  f
end

#init_keysObject



4
5
6
# File 'lib/llt/form/verb.rb', line 4

def init_keys
  i{ inflection_class stem thematic extension ending persona tempus modus genus numerus contraction prefix }
end

#segmentsObject



19
20
21
22
23
24
25
# File 'lib/llt/form/verb.rb', line 19

def segments
  if @extension == "b"
    [@prefix, @stem, @extension, @thematic, @ending]
  else
    [@prefix, @stem, @thematic, @extension, @ending]
  end
end