Class: UiBibz::Utils::Internationalization
- Inherits:
-
Object
- Object
- UiBibz::Utils::Internationalization
- Defined in:
- lib/ui_bibz/utils/internationalization.rb
Instance Method Summary (collapse)
-
- (Internationalization) initialize(translation, options = {})
constructor
A new instance of Internationalization.
- - (Object) translate
Constructor Details
- (Internationalization) initialize(translation, options = {})
Returns a new instance of Internationalization
4 5 6 7 |
# File 'lib/ui_bibz/utils/internationalization.rb', line 4 def initialize translation, = {} @translation = translation @options = end |
Instance Method Details
- (Object) translate
9 10 11 |
# File 'lib/ui_bibz/utils/internationalization.rb', line 9 def translate I18n.t(@translation, ) end |