Class: Linguistics::EN::Infinitive

Inherits:
String 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

Methods inherited from String

#chomp, #chomp!, #compress, #compressperline, #compressspaces, #crlf, #ends_with, #ensure_end, #eval, #exec, #from_html, #lchop, #lf, #noquotes, #numeric?, #speak, #splitblocks, #splitwords, #starts_with, #strip, #stripafter, #stripbefore, #to_fs, #to_html, #uncomment, #undot!

Constructor Details

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

Create and return a new Infinitive object.



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

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

Instance Attribute Details

#ruleObject (readonly)

The rule used



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

def rule
  @rule
end

#suffixObject (readonly)

The suffix used to to identify the transform rule



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

def suffix
  @suffix
end

#word2Object (readonly)

The fallback deconjugated form



1035
1036
1037
# File 'lib/linguistics/en/infinitive.rb', line 1035

def word2
  @word2
end