Class: Linguistics::Latin::Verb::LatinVerb::QuerentFactory

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/latinverb_querent_for_classification_builder/querent_factory.rb

Constant Summary collapse

MAPPING =
{
  First: FirstQuerent,
  Second: SecondQuerent,
  Third: ThirdQuerent,
  ThirdIO: ThirdIOQuerent,
  Fourth: FourthQuerent
}

Instance Method Summary collapse

Constructor Details

#initialize(verb) ⇒ QuerentFactory

Returns a new instance of QuerentFactory.



18
19
20
# File 'lib/latinverb_querent_for_classification_builder/querent_factory.rb', line 18

def initialize(verb)
  @verb = verb
end

Instance Method Details

#querentObject



22
23
24
# File 'lib/latinverb_querent_for_classification_builder/querent_factory.rb', line 22

def querent
  MAPPING[short_type].new(@verb)
end