Sha256: fa10ca89391fa1341a9f51fdb9a1acf03133c51c456d5f71b3fec264a857101c

Contents?: true

Size: 546 Bytes

Versions: 14

Compression:

Stored size: 546 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)
        TwitterCldr::Utils.traverse_hash(hash, path)
      end

      def resource
        raise NotImplementedError
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/twitter_cldr-4.4.5/lib/twitter_cldr/data_readers/data_reader.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/twitter_cldr-4.4.5/lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.4.5 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.4.4 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.4.3 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.4.2 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.4.1 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.4.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.3.1 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.3.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.2.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.1.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-4.0.0 lib/twitter_cldr/data_readers/data_reader.rb
twitter_cldr-3.6.0 lib/twitter_cldr/data_readers/data_reader.rb