Module: Thailand
- Defined in:
- lib/thailand.rb,
lib/thailand/i18n.rb,
lib/thailand/utils.rb,
lib/thailand/region.rb,
lib/thailand/country.rb,
lib/thailand/version.rb,
lib/thailand/district.rb,
lib/thailand/province.rb,
lib/thailand/querying.rb,
lib/thailand/region_collection.rb
Defined Under Namespace
Modules: I18n, Querying, Utils Classes: Country, District, Province, Region, RegionCollection
Constant Summary collapse
- VERSION =
'1.0.0'
Class Attribute Summary collapse
-
.data_paths ⇒ Object
Returns the value of attribute data_paths.
-
.i18n_backend ⇒ Object
Returns the value of attribute i18n_backend.
-
.root_path ⇒ Object
Returns the value of attribute root_path.
Class Method Summary collapse
Class Attribute Details
.data_paths ⇒ Object
Returns the value of attribute data_paths.
14 15 16 |
# File 'lib/thailand.rb', line 14 def data_paths @data_paths end |
.i18n_backend ⇒ Object
Returns the value of attribute i18n_backend.
14 15 16 |
# File 'lib/thailand.rb', line 14 def i18n_backend @i18n_backend end |
.root_path ⇒ Object
Returns the value of attribute root_path.
14 15 16 |
# File 'lib/thailand.rb', line 14 def root_path @root_path end |
Class Method Details
.clear_data_paths ⇒ Object
16 17 18 19 |
# File 'lib/thailand.rb', line 16 def clear_data_paths Country.instance.reset! @data_paths = [] end |
.reset_data_paths ⇒ Object
21 22 23 24 |
# File 'lib/thailand.rb', line 21 def reset_data_paths clear_data_paths @data_paths << Pathname.new(@root_path + 'data') end |