Class: YamlTranslator::StringContext

Inherits:
Context
  • Object
show all
Defined in:
lib/yaml-translator/context.rb

Instance Method Summary collapse

Methods inherited from Context

#initialize, #to

Constructor Details

This class inherits a constructor from YamlTranslator::Context

Instance Method Details

#diff(s) ⇒ Object



20
21
22
23
# File 'lib/yaml-translator/context.rb', line 20

def diff(s)
  diff_locale = @locale.diff(Locale.load(s))
  DiffContext.new(diff_locale, @translator)
end