Sha256: 405b49e7f88de51d473a3ed01c3b5d61c496fac2e8bb56669083362cea7dc5b4

Contents?: true

Size: 517 Bytes

Versions: 22

Compression:

Stored size: 517 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 = locale
      end

      def pattern_at_path(path)
        traverse(path)
      end

      private

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

      def resource
        raise NotImplementedError
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
twitter_cldr-3.5.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.4.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.3.0 lib/twitter_cldr/data_readers/data_reader.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/twitter_cldr-3.2.1/lib/twitter_cldr/data_readers/data_reader.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/twitter_cldr-3.2.1/lib/twitter_cldr/data_readers/data_reader.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/twitter_cldr-3.1.2/lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.2.1 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.2.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.1.2 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.1.1 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.1.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.0.10 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.0.9 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.0.8 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.0.7 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.0.6 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.0.5 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.0.4 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.0.3 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.0.2 lib/twitter_cldr/data_readers/data_reader.rb