Class: 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.
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
#rule ⇒ Object (readonly)
The rule used
1041 1042 1043 |
# File 'lib/linguistics/en/infinitive.rb', line 1041 def rule @rule end |
#suffix ⇒ Object (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 |
#word2 ⇒ Object (readonly)
The fallback deconjugated form
1035 1036 1037 |
# File 'lib/linguistics/en/infinitive.rb', line 1035 def word2 @word2 end |