Linguistics::EN::Infinitives::

Infinitive

class
Superclass
String

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

anchor
new( word1, word2, suffix, rule )

Create and return a new Infinitive object.

# 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

anchor
==( other )

Equality operator: returns true if other is == to either of the receiver's words.

# File lib/linguistics/en/infinitives.rb, line 1022
def ==( other )
        return super(other) || @word2 == other
end