Sha256: 92e302080a3b3c246469db2db7d8fafca0592f8da477a8d89d75712ba3ea0dda

Contents?: true

Size: 562 Bytes

Versions: 28

Compression:

Stored size: 562 Bytes

Contents

# encoding: UTF-8

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

module TwitterCldr
  module DataReaders
    class DataReader

      attr_reader :locale

      def initialize(locale)
        @locale = TwitterCldr.convert_locale(locale)
      end

      def pattern_at_path(path)
        traverse(path)
      end

      private

      def traverse(path, hash = resource, &block)
        TwitterCldr::Utils.traverse_hash(hash, path, &block)
      end

      def resource
        raise NotImplementedError
      end

    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
twitter_cldr-6.12.1 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.12.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.11.5 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.11.4 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.11.3 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.11.2 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.11.1 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.11.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.10.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.9.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.8.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.7.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.6.2 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.6.1 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.6.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.5.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.4.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.3.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.2.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-6.1.0 lib/twitter_cldr/data_readers/data_reader.rb