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, options = {})
  @value = value.to_s || ''
  @locale = Translatomatic::Locale.parse(locale)
  @offset = options[:offset] || 0
  @parent = options[:parent]
end