Class: Linguistics::Latin::Verb::LatinVerb::Classifier::DeponentVerbClassificationStrategy

Inherits:
VerbClassificationStrategy show all
Defined in:
lib/latinverb_classifier/strategies/deponent_verb_classification_strategy.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from VerbClassificationStrategy

#initialize

Constructor Details

This class inherits a constructor from Linguistics::Latin::Verb::LatinVerb::Classifier::VerbClassificationStrategy

Class Method Details

.classificationObject



8
9
10
# File 'lib/latinverb_classifier/strategies/deponent_verb_classification_strategy.rb', line 8

def self.classification
  return Classification::Deponent
end

Instance Method Details

#applicable?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/latinverb_classifier/strategies/deponent_verb_classification_strategy.rb', line 12

def applicable?
  infinitive =~ /ī$/ && first_pres =~ /r$/
end