Sha256: 7dd260861a791aa726a16d29c32cceb2494eea2634848bb6b756b53a5dc2f8c4
Contents?: true
Size: 379 Bytes
Versions: 6
Compression:
Stored size: 379 Bytes
Contents
# backtick_javascript: true require 'native' require 'nodejs/js-yaml-3-6-1' module YAML @__yaml__ = `globalThis.jsyaml` `var __yaml__ = #{@__yaml__}` def self.load_path(path) load(`#{File}.__fs__.readFileSync(#{path}, 'utf8')`) end def self.load(data) loaded = `__yaml__.safeLoad(data)` loaded = Hash.new(loaded) if native?(loaded) loaded end end
Version data entries
6 entries across 6 versions & 1 rubygems