Class: RussianWordForms::Rules::Rule
- Inherits:
-
Object
- Object
- RussianWordForms::Rules::Rule
- Defined in:
- lib/russian_word_forms/rules.rb
Instance Attribute Summary collapse
-
#normal_suffix ⇒ Object
Returns the value of attribute normal_suffix.
-
#rule ⇒ Object
Returns the value of attribute rule.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
Instance Method Summary collapse
-
#initialize(rule, normal_suffix, suffix) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(rule, normal_suffix, suffix) ⇒ Rule
Returns a new instance of Rule.
5 6 7 8 9 |
# File 'lib/russian_word_forms/rules.rb', line 5 def initialize(rule,normal_suffix,suffix) @rule = rule @normal_suffix = normal_suffix @suffix = suffix end |
Instance Attribute Details
#normal_suffix ⇒ Object
Returns the value of attribute normal_suffix.
4 5 6 |
# File 'lib/russian_word_forms/rules.rb', line 4 def normal_suffix @normal_suffix end |
#rule ⇒ Object
Returns the value of attribute rule.
4 5 6 |
# File 'lib/russian_word_forms/rules.rb', line 4 def rule @rule end |
#suffix ⇒ Object
Returns the value of attribute suffix.
4 5 6 |
# File 'lib/russian_word_forms/rules.rb', line 4 def suffix @suffix end |