Class: Linguistics::EN::Infinitive
- Inherits:
-
String
- Object
- String
- Linguistics::EN::Infinitive
- Defined in:
- lib/linguistics/en/infinitive.rb
Overview
The object class for the result returned from calling Linguistics::EN::infinitive.
Instance Attribute Summary collapse
-
#rule ⇒ Object
readonly
The rule used.
-
#suffix ⇒ Object
readonly
The suffix used to to identify the transform rule.
-
#word2 ⇒ Object
readonly
The fallback deconjugated form.
Instance Method Summary collapse
-
#initialize(word1, word2, suffix, rule) ⇒ Infinitive
constructor
Create and return a new Infinitive object.
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
#rule ⇒ Object (readonly)
The rule used
1043 1044 1045 |
# File 'lib/linguistics/en/infinitive.rb', line 1043 def rule @rule end |
#suffix ⇒ Object (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 |
#word2 ⇒ Object (readonly)
The fallback deconjugated form
1037 1038 1039 |
# File 'lib/linguistics/en/infinitive.rb', line 1037 def word2 @word2 end |