Class: LLT::FormBuilder::VerbSegments::ImperfectumSegments

Inherits:
LLT::FormBuilder::VerbSegments show all
Defined in:
lib/llt/form_builder/helpers/verb_segments.rb

Instance Attribute Summary

Attributes inherited from LLT::FormBuilder::VerbSegments

#inflection_class, #modus

Instance Method Summary collapse

Methods inherited from LLT::FormBuilder::VerbSegments

get, #init_keys, #initialize

Constructor Details

This class inherits a constructor from LLT::FormBuilder::VerbSegments

Instance Method Details

#extensionObject



357
358
359
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 357

def extension
  send("extension_" + modus_term)
end

#stem_of_edereObject



331
332
333
334
335
336
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 331

def stem_of_edere
  case @modus
  when t.indicativus then "ed"
  when t.coniunctivus then "es"
  end
end

#stem_of_esseObject



324
325
326
327
328
329
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 324

def stem_of_esse
  case @modus
  when t.indicativus then "er"
  when t.coniunctivus then n(:STEM_ESSE_ES)
  end
end

#stem_of_ireObject



353
354
355
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 353

def stem_of_ire
  "i"
end

#stem_of_posseObject



338
339
340
341
342
343
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 338

def stem_of_posse
  case @modus
  when t.indicativus then "pot" + stem_of_esse
  when t.coniunctivus then "po" + stem_of_esse[1..-1]
  end
end

#stem_of_velleObject



345
346
347
348
349
350
351
# File 'lib/llt/form_builder/helpers/verb_segments.rb', line 345

def stem_of_velle
  if @modus == t.indicativus
    "vol"
  else
    "vel"
  end
end