Class: LLT::FormBuilder::VerbSegments

Inherits:
Object
  • Object
show all
Extended by:
Helpers::Normalizer
Includes:
Helpers::Initialize, Helpers::Normalizer
Defined in:
lib/llt/form_builder/helpers/verb_segments.rb

Defined Under Namespace

Classes: FuturumExactumSegments, FuturumSegments, ImperfectumSegments, PerfectStemSegments, PerfectumSegments, PlusquamperfectumSegments, PraesensSegments

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ VerbSegments

Returns a new instance of VerbSegments.



19
20
21
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 19

def initialize(args)
  extract_normalized_args!(args)
end

Instance Attribute Details

#inflection_classObject (readonly)

Returns the value of attribute inflection_class.



4
5
6
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 4

def inflection_class
  @inflection_class
end

#modusObject (readonly)

Returns the value of attribute modus.



4
5
6
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 4

def modus
  @modus
end

Class Method Details

.get(method, args) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 10

def self.get(method, args)
  c = if temp = args[:tempus]
        const_get("#{t.send(temp, :camelcase)}Segments")
      else
        PraesensSegments
      end
  c.new(args).send(method).to_s # to_s to capture all nil returns and give back an empty string
end

Instance Method Details

#init_keysObject



23
24
25
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 23

def init_keys
  i{ sexus casus modus inflection_class numerus persona ending genus }
end