Class: Kotoshu::Languages::Portuguese::GrammarRules::PersonalInfinitiveRule

Inherits:
Rule
  • Object
show all
Defined in:
lib/kotoshu/languages/pt/language.rb

Overview

Rule: Personal infinitive agreement

Instance Attribute Summary

Attributes inherited from Rule

#description, #id, #name

Instance Method Summary collapse

Constructor Details

#initializePersonalInfinitiveRule

Returns a new instance of PersonalInfinitiveRule.



267
268
269
# File 'lib/kotoshu/languages/pt/language.rb', line 267

def initialize
  super('PT_PERSONAL_INFINITIVE', 'Personal Infinitive', 'Personal infinitive must agree with the subject.')
end

Instance Method Details

#check(tokens) ⇒ Object



271
272
273
274
# File 'lib/kotoshu/languages/pt/language.rb', line 271

def check(tokens)
  # Simplified implementation
  []
end