Class: LLT::InfinitivumBuilder

Inherits:
VerbBuilder show all
Defined in:
lib/llt/form_builder/infinitivum_builder.rb

Constant Summary

Constants inherited from FormBuilder

FormBuilder::VERSION

Instance Attribute Summary

Attributes inherited from FormBuilder

#impersonalium

Instance Method Summary collapse

Methods inherited from VerbBuilder

#contraction, #endings_namespace, #genus_index, #persona_index, #regular_forms

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::FormBuilder

Instance Method Details

#indicesObject



10
11
12
# File 'lib/llt/form_builder/infinitivum_builder.rb', line 10

def indices
  { genus: (@deponens ? [1] : [0,1]) }
end

#new_form_through_index(ending, i) ⇒ Object



14
15
16
17
# File 'lib/llt/form_builder/infinitivum_builder.rb', line 14

def new_form_through_index(ending, i)
  g, t = attributes_by_index(i)
  new_form(ending: ending, genus: g, tempus: t, index: i)
end