Class: TwitterCldr::DataReaders::DataReader
- Inherits:
-
Object
- Object
- TwitterCldr::DataReaders::DataReader
- Defined in:
- lib/twitter_cldr/data_readers/data_reader.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
Instance Method Summary collapse
-
#initialize(locale) ⇒ DataReader
constructor
A new instance of DataReader.
- #pattern_at_path(path) ⇒ Object
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
#locale ⇒ Object (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 |