Class: Linguistics::Latin::Verb::LatinVerb::ImperativesHandler
- Inherits:
-
Object
- Object
- Linguistics::Latin::Verb::LatinVerb::ImperativesHandler
- Extended by:
- Forwardable
- Defined in:
- lib/latinverb/components/imperatives_handler.rb
Constant Summary collapse
- IMPERATIVE_EXCEPTIONS =
{ "ducere" => %w(duc ducite), "dicere" => %w(dic dicite), "facere" => %w(fac facite), "ferre" => %w(fer ferte), "nolere" => %w(nolo nolite) }
Instance Method Summary collapse
- #imperatives ⇒ Object
-
#initialize(verb) ⇒ ImperativesHandler
constructor
A new instance of ImperativesHandler.
Constructor Details
#initialize(verb) ⇒ ImperativesHandler
Returns a new instance of ImperativesHandler.
18 19 20 |
# File 'lib/latinverb/components/imperatives_handler.rb', line 18 def initialize(verb) @verb = verb end |
Instance Method Details
#imperatives ⇒ Object
22 23 24 25 |
# File 'lib/latinverb/components/imperatives_handler.rb', line 22 def imperatives args = exceptional_imperative? ? calculate_exceptional_imperatives : [stem, present_active_infinitive] Linguistics::Latin::Verb::ImperativeBlock.new(*args, @verb) end |