Class: LLT::SupinumBuilder

Inherits:
DeclinableBuilder show all
Defined in:
lib/llt/form_builder/supinum_builder.rb

Constant Summary

Constants inherited from FormBuilder

FormBuilder::VERSION

Instance Attribute Summary

Attributes inherited from DeclinableBuilder

#comparatio, #sexus

Attributes inherited from FormBuilder

#impersonalium

Instance Method Summary collapse

Methods inherited from DeclinableBuilder

#additional_forms, #compute, #endings_lookup, #er_nominative_possible?, #extended_special_forms, #indices, #initialize, #irregulars_with_nominative, #new_attributes, #new_form_through_index, #new_special_form, #o_declension_on_ius?, #pronominal_declension?, #proper_vocative, #regular_forms, #regular_o_declension?, #special_ending, #with_replacements

Methods inherited from FormBuilder

#attributes_by_index, build, #compute, #corrections, #cross_indices, #default_args, #downcase_all_stems, #endings, #endings_attributes, #endings_container, #endings_lookup, #endings_namespace, #endings_path, #extensions_and_other_signs, #form_class, #indices_by_ending, #init_keys, #initialize, #keep_given_value, lookup_class, #lookup_indices, #needs_validation?, #new_form, #prefix, #reverse_lookup, #stays_capitalized, #stem_copy, #valid?, #validation_rule, #validations, validations, #value_as_index

Constructor Details

This class inherits a constructor from LLT::DeclinableBuilder

Instance Method Details

#casus_numerus_sexus_by_index(index, sexus = nil) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/llt/form_builder/supinum_builder.rb', line 15

def casus_numerus_sexus_by_index(index, sexus = nil)
  case index
  when  0 then [3, 1, :n]
  when  1 then [4, 1, :n]
  when  2 then [6, 1, :n]
  end
end

#index_of_ending(casus, numerus, sexus = nil) ⇒ Object Also known as: ioe



6
7
8
9
10
11
12
# File 'lib/llt/form_builder/supinum_builder.rb', line 6

def index_of_ending(casus, numerus, sexus = nil)
  case casus
  when 3 then 0
  when 4 then 1
  when 6 then 2
  end
end