class Linguistics::EN::Infinitives::Infinitive
The object class for the result returned from calling Linguistics::EN::infinitive.
Attributes
rule[R]
The rule used
suffix[R]
The suffix used to to identify the transform rule
word2[R]
The fallback deconjugated form
Public Class Methods
new( word1, word2, suffix, rule )
click to toggle source
Create and return a new Infinitive object.
Calls superclass method
# File lib/linguistics/en/infinitives.rb, line 1000 def initialize( word1, word2, suffix, rule ) super( word1 ) @word2 = word2 @suffix = suffix @rule = rule end
Public Instance Methods
==( other )
click to toggle source
Equality operator: returns true
if other
is == to
either of the receiver's words.
Calls superclass method
# File lib/linguistics/en/infinitives.rb, line 1022 def ==( other ) return super(other) || @word2 == other end