Method: Translatomatic::String#initialize
- Defined in:
- lib/translatomatic/string.rb
#initialize(value, locale, options = {}) ⇒ String
Returns a new instance of String.
19 20 21 22 23 24 |
# File 'lib/translatomatic/string.rb', line 19 def initialize(value, locale, = {}) @value = value.to_s || '' @locale = Translatomatic::Locale.parse(locale) @offset = [:offset] || 0 @parent = [:parent] end |