Sha256: 0cafedf294ae08b673c56551112443d7ddf8b36efa8c645dd0efc6c193bc224c
Contents?: true
Size: 344 Bytes
Versions: 30
Compression:
Stored size: 344 Bytes
Contents
module Ufo class Yaml class << self def load(text) path = "/tmp/ufo/temp.yml" FileUtils.mkdir_p(File.dirname(path)) IO.write(path, text) Validator.new(path).validate! Loader.new(text).load end def validate!(path) Validator.new(path).validate! end end end end
Version data entries
30 entries across 30 versions & 1 rubygems