Class: TwitterCldr::DataReaders::DataReader

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_cldr/data_readers/data_reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locale) ⇒ DataReader

Returns a new instance of DataReader.



12
13
14
# File 'lib/twitter_cldr/data_readers/data_reader.rb', line 12

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

Instance Attribute Details

#localeObject (readonly)

Returns the value of attribute locale.



10
11
12
# File 'lib/twitter_cldr/data_readers/data_reader.rb', line 10

def locale
  @locale
end

Instance Method Details

#pattern_at_path(path) ⇒ Object



16
17
18
# File 'lib/twitter_cldr/data_readers/data_reader.rb', line 16

def pattern_at_path(path)
  traverse(path)
end