Class: TwitterCldr::Formatters::Rbnf::RuleGroup

Inherits:
Struct
  • Object
show all
Defined in:
lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



10
11
12
# File 'lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb', line 10

def name
  @name
end

#rule_setsObject

Returns the value of attribute rule_sets

Returns:

  • (Object)

    the current value of 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