class Nucleon::Translator::Yaml

Public Instance Methods

generate(properties) click to toggle source
# File lib/nucleon/translator/yaml.rb, line 20
def generate(properties)
  return super do
    Util::Data.to_yaml(properties)
  end
end
parse(yaml_text) click to toggle source
# File lib/nucleon/translator/yaml.rb, line 9
def parse(yaml_text)
  return super do |properties|
    if yaml_text && ! yaml_text.empty?
      properties = Util::Data.parse_yaml(yaml_text)
    end
    properties
  end
end