Sha256: 7ac819c6f1a83f85300abc7431770df2cb0ceaf61b8154e4f591d75e7a925b99

Contents?: true

Size: 226 Bytes

Versions: 3

Compression:

Stored size: 226 Bytes

Contents

require "safe_yaml/handler"
require "safe_yaml/version"

module YAML
  def self.safe_load(yaml)
    safe_handler = SafeYAML::Handler.new
    Psych::Parser.new(safe_handler).parse(yaml)
    return safe_handler.result
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
safe_yaml-0.2.2 lib/safe_yaml.rb
safe_yaml-0.2.1 lib/safe_yaml.rb
safe_yaml-0.2 lib/safe_yaml.rb