Class: YamlTranslator::StringContext

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

Instance Method Summary collapse

Methods inherited from Context

#all, #initialize, #to

Constructor Details

This class inherits a constructor from YamlTranslator::Context

Instance Method Details

#diff(s) ⇒ Object



25
26
27
28
# File 'lib/yaml-translator/context.rb', line 25

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