Class: YamlTranslator::FileContext

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(path) ⇒ Object



18
19
20
21
# File 'lib/yaml-translator/context.rb', line 18

def diff(path)
  diff_locale = @locale.diff(Locale.load_file(path))
  DiffContext.new(diff_locale, @translator)
end