Class: Orthotypo::Localizer
- Inherits:
-
Object
- Object
- Orthotypo::Localizer
- Defined in:
- lib/orthotypo/localizer.rb
Constant Summary collapse
- DEFAULT_LOCALE =
'fr'
Instance Method Summary collapse
- #composer ⇒ Object
-
#initialize(string, locale: nil, html: nil) ⇒ Localizer
constructor
A new instance of Localizer.
Constructor Details
#initialize(string, locale: nil, html: nil) ⇒ Localizer
Returns a new instance of Localizer.
6 7 8 9 10 |
# File 'lib/orthotypo/localizer.rb', line 6 def initialize(string, locale: nil, html: nil) @string = string @locale = locale @html = html end |
Instance Method Details
#composer ⇒ Object
12 13 14 |
# File 'lib/orthotypo/localizer.rb', line 12 def composer composer_class.new @string, html: @html end |