Class: LLT::EthnicBuilder
- Inherits:
-
DeclinableBuilder
- Object
- FormBuilder
- DeclinableBuilder
- LLT::EthnicBuilder
- Defined in:
- lib/llt/form_builder/ethnic_builder.rb
Constant Summary
Constants inherited from FormBuilder
Instance Attribute Summary
Attributes inherited from DeclinableBuilder
Attributes inherited from FormBuilder
Instance Method Summary collapse
-
#initialize(stem) ⇒ EthnicBuilder
constructor
A new instance of EthnicBuilder.
- #stays_capitalized ⇒ Object
Methods inherited from DeclinableBuilder
#additional_forms, #casus_numerus_sexus_by_index, #compute, #endings_lookup, #er_nominative_possible?, #extended_special_forms, #index_of_ending, #indices, #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, #keep_given_value, lookup_class, #lookup_indices, #needs_validation?, #new_form, #prefix, #reverse_lookup, #stem_copy, #valid?, #validation_rule, #validations, validations, #value_as_index
Constructor Details
#initialize(stem) ⇒ EthnicBuilder
Returns a new instance of EthnicBuilder.
8 9 10 11 |
# File 'lib/llt/form_builder/ethnic_builder.rb', line 8 def initialize(stem) @number_of_endings = (stem[:inflection_class] == 1 ? 3 : 2) super end |
Instance Method Details
#stays_capitalized ⇒ Object
13 14 15 |
# File 'lib/llt/form_builder/ethnic_builder.rb', line 13 def stays_capitalized true end |