Class: RussianWordForms::Rules::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/russian_word_forms/rules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_suffixObject

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

#ruleObject

Returns the value of attribute rule.



4
5
6
# File 'lib/russian_word_forms/rules.rb', line 4

def rule
  @rule
end

#suffixObject

Returns the value of attribute suffix.



4
5
6
# File 'lib/russian_word_forms/rules.rb', line 4

def suffix
  @suffix
end