module YamlPath

Constants

VERSION

Public Class Methods

replace(yaml_content, yaml_path, &block) click to toggle source
# File lib/yaml_path.rb, line 9
def replace(yaml_content, yaml_path, &block)
  YAML::Parser.new(TreeBuilder.new(yaml_path: yaml_path, replace_proc: block)).parse(yaml_content).handler.root.to_yaml
end