class PhraseAppUpdater::LocaleFile::YAMLFile

Constants

EXTENSION
PHRASEAPP_TYPE

Public Class Methods

dump(hash) click to toggle source
# File lib/phraseapp_updater/locale_file/yaml_file.rb, line 15
def dump(hash)
  Psych.dump(hash)
end
extension() click to toggle source
# File lib/phraseapp_updater/locale_file/yaml_file.rb, line 19
def extension
  EXTENSION
end
load(content) click to toggle source
# File lib/phraseapp_updater/locale_file/yaml_file.rb, line 9
def load(content)
  Psych.load(content)
rescue Psych::SyntaxError => e
  raise ArgumentError.new("Provided content was not valid YAML")
end
phraseapp_type() click to toggle source
# File lib/phraseapp_updater/locale_file/yaml_file.rb, line 23
def phraseapp_type
  PHRASEAPP_TYPE
end