Class: Cldr::Export::Data::Layout
- Defined in:
- lib/cldr/export/data/layout.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(locale) ⇒ Layout
constructor
A new instance of Layout.
- #layout ⇒ Object
Methods inherited from Base
Methods inherited from Hash
#deep_merge, #deep_stringify_keys, #symbolize_keys
Constructor Details
#initialize(locale) ⇒ Layout
Returns a new instance of Layout.
5 6 7 8 |
# File 'lib/cldr/export/data/layout.rb', line 5 def initialize(locale) super update(:layout => layout) end |
Instance Method Details
#layout ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/cldr/export/data/layout.rb', line 10 def layout result = { :orientation => { :character_order => nil } } if node = select("layout/orientation/characterOrder/text()").first result[:orientation][:character_order] = node.text end result end |