Class: Relaton::Render::Plateau::I18n
- Inherits:
-
I18n
- Object
- I18n
- Relaton::Render::Plateau::I18n
- Defined in:
- lib/relaton/render-plateau/i18n.rb
Instance Method Summary collapse
-
#initialize(opt) ⇒ I18n
constructor
A new instance of I18n.
- #select_default ⇒ Object
- #select_obj(obj) ⇒ Object
Constructor Details
#initialize(opt) ⇒ I18n
Returns a new instance of I18n.
5 6 7 8 9 |
# File 'lib/relaton/render-plateau/i18n.rb', line 5 def initialize(opt) super #require "debug"; binding.b @lang = opt["language"] end |
Instance Method Details
#select_default ⇒ Object
11 12 13 |
# File 'lib/relaton/render-plateau/i18n.rb', line 11 def select_default @i18n[@lang] end |
#select_obj(obj) ⇒ Object
15 16 17 |
# File 'lib/relaton/render-plateau/i18n.rb', line 15 def select_obj(obj) @i18n[obj[:language]] end |