class Linguistics::Latin::Verb::LatinVerb::PresentOnlyChecker

Public Class Methods

new(original_string) click to toggle source
# File lib/latinverb_classifier/present_only_checker.rb, line 6
def initialize(original_string)
  @original_string = original_string
end

Public Instance Methods

present_only?() click to toggle source
# File lib/latinverb_classifier/present_only_checker.rb, line 10
def present_only?
  listed_as_present_only?
end

Private Instance Methods

first_person_present_tense() click to toggle source
# File lib/latinverb_classifier/present_only_checker.rb, line 21
def first_person_present_tense
  @original_string.split(/\s+/)[0]
end
listed_as_present_only?() click to toggle source
# File lib/latinverb_classifier/present_only_checker.rb, line 16
def listed_as_present_only?
   Linguistics::Latin::Verb::PRESENT_ONLY.member?( first_person_present_tense ) ||
     Linguistics::Latin::Verb::PRESENT_ONLY.member?( present_active_infinitive )
end
present_active_infinitive() click to toggle source
# File lib/latinverb_classifier/present_only_checker.rb, line 25
def present_active_infinitive
  @original_string.split(/\s+/)[1]
end