Sha256: 5e1c718857a0df291346ebc9afd2186a496b2e3f3a87f0f70898f35073b356e7

Contents?: true

Size: 378 Bytes

Versions: 65

Compression:

Stored size: 378 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

module TwitterCldr
  module Formatters
    module Rbnf

      RuleGroup = Struct.new(:rule_sets, :name) do
        def rule_set_for(rule_set_name)
          rule_sets.find do |rule_set|
            rule_set.name == rule_set_name
          end
        end
      end

    end
  end
end

Version data entries

65 entries across 65 versions & 3 rubygems

Version Path
twitter_cldr-3.0.4 lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb
twitter_cldr-3.0.3 lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb
twitter_cldr-3.0.2 lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb
twitter_cldr-3.0.1 lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb
twitter_cldr-3.0.0 lib/twitter_cldr/formatters/numbers/rbnf/rule_group.rb