class Linguistics::Latin::Verb::LatinVerb::ImperativesFactory

Public Class Methods

new(verb) click to toggle source
# File lib/latinverb_imperatives/imperatives_factory.rb, line 9
def initialize(verb)
  @verb = verb
end

Public Instance Methods

imperatives() click to toggle source
# File lib/latinverb_imperatives/imperatives_factory.rb, line 13
def imperatives
  return irregular if irregular?
  if deponent? || semideponent?
    deponent
  else
    standard
  end
end

Private Instance Methods

deponent() click to toggle source
# File lib/latinverb_imperatives/imperatives_factory.rb, line 28
def deponent
  DeponentImperativesHandler.new(@verb)
end
irregular() click to toggle source
# File lib/latinverb_imperatives/imperatives_factory.rb, line 24
def irregular
  Linguistics::Latin::Verb::LatinVerb::IrregularImperativesRetriever.new(@verb.original_string).retrieve
end
standard() click to toggle source
# File lib/latinverb_imperatives/imperatives_factory.rb, line 32
def standard
  ImperativesHandler.new(@verb)
end