Class: LLT::Form::Adjective

Inherits:
Declinable show all
Defined in:
lib/llt/form/adjective.rb

Direct Known Subclasses

Adverb

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 Declinable

#init_functions

Methods inherited from LLT::Form

#functions, #init_functions, #initialize, #to_s

Constructor Details

This class inherits a constructor from LLT::Form

Instance Method Details

#init_keysObject



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

def init_keys
  super + %i{ comparatio number_of_endings comparison_sign }
end

#segmentizedObject



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

def segmentized
  unless @ending.empty? && ! @comparatio
    super.chomp("-")
  end
end

#segmentsObject



14
15
16
# File 'lib/llt/form/adjective.rb', line 14

def segments
  [@stem, @comparison_sign, @ending]
end