Class: Linguistics::EN::Infinitive

Inherits:
String
  • Object
show all
Defined in:
lib/linguistics/en/infinitive.rb

Overview

The object class for the result returned from calling Linguistics::EN::infinitive.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(word1, word2, suffix, rule) ⇒ Infinitive

Create and return a new Infinitive object.



1024
1025
1026
1027
1028
1029
# File 'lib/linguistics/en/infinitive.rb', line 1024

def initialize( word1, word2, suffix, rule )
	super( word1 )
	@word2 = word2
	@suffix = suffix
	@rule = rule
end

Instance Attribute Details

#ruleObject (readonly)

The rule used



1043
1044
1045
# File 'lib/linguistics/en/infinitive.rb', line 1043

def rule
  @rule
end

#suffixObject (readonly)

The suffix used to to identify the transform rule



1040
1041
1042
# File 'lib/linguistics/en/infinitive.rb', line 1040

def suffix
  @suffix
end

#word2Object (readonly)

The fallback deconjugated form



1037
1038
1039
# File 'lib/linguistics/en/infinitive.rb', line 1037

def word2
  @word2
end