Class: Orthotypo::Localizer

Inherits:
Object
  • Object
show all
Defined in:
lib/orthotypo/localizer.rb

Constant Summary collapse

DEFAULT_LOCALE =
'fr'

Instance Method Summary collapse

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

#composerObject



12
13
14
# File 'lib/orthotypo/localizer.rb', line 12

def composer
  composer_class.new @string, html: @html
end