Method: Thailand::I18n::Simple#initialize
- Defined in:
- lib/thailand/i18n.rb
#initialize(*initial_locale_paths) ⇒ Simple
Returns a new instance of Simple.
13 14 15 16 17 18 19 20 |
# File 'lib/thailand/i18n.rb', line 13 def initialize(*initial_locale_paths) self.locale = DEFAULT_LOCALE @fallback_locale = DEFAULT_LOCALE @locale_paths = [] initial_locale_paths.each do |path| append_locale_path(path) end end |