Class: TwitterCldr::Formatters::Rbnf::RuleGroup
- Inherits:
-
Struct
- Object
- Struct
- TwitterCldr::Formatters::Rbnf::RuleGroup
- Defined in:
- lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#rule_sets ⇒ Object
Returns the value of attribute rule_sets.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
10 11 12 |
# File 'lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb', line 10 def name @name end |
#rule_sets ⇒ Object
Returns the value of attribute rule_sets
10 11 12 |
# File 'lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb', line 10 def rule_sets @rule_sets end |
Instance Method Details
#rule_set_for(rule_set_name) ⇒ Object
11 12 13 14 15 |
# File 'lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb', line 11 def rule_set_for(rule_set_name) rule_sets.find do |rule_set| rule_set.name == rule_set_name end end |