Sha256: b54de7a6ad154919cb998eccde8f7314e991c1315fba0b15eb1d3747dffc5e1e

Contents?: true

Size: 540 Bytes

Versions: 65

Compression:

Stored size: 540 Bytes

Contents

# encoding: UTF-8

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

module TwitterCldr
  module Parsers

    # This is really just a thin layer on top of Hash.
    # Nice to have it abstracted in case we have to add custom behavior.
    class SymbolTable

      attr_reader :symbols

      def initialize(symbols = {})
        @symbols = symbols
      end

      def fetch(symbol)
        symbols.fetch(symbol)
      end

      def add(symbol, value)
        symbols[symbol] = value
      end

    end

  end
end

Version data entries

65 entries across 65 versions & 3 rubygems

Version Path
twitter_cldr-3.0.4 lib/twitter_cldr/parsers/symbol_table.rb
twitter_cldr-3.0.3 lib/twitter_cldr/parsers/symbol_table.rb
twitter_cldr-3.0.2 lib/twitter_cldr/parsers/symbol_table.rb
twitter_cldr-3.0.1 lib/twitter_cldr/parsers/symbol_table.rb
twitter_cldr-3.0.0 lib/twitter_cldr/parsers/symbol_table.rb