class BabelDiff::ImportFileHandler::PhraseFile

Public Instance Methods

contents() click to toggle source
# File lib/babel_diff/import_file_handler.rb, line 32
def contents
  File.read(path)
end
language() click to toggle source
# File lib/babel_diff/import_file_handler.rb, line 28
def language
  path.split("/").last.match(/phrase.(.*).yml/)[1]
end