Sha256: 2267af7e78896f6d79945384b996f630409e07a132d15595acf7009db1b088b1
Contents?: true
Size: 275 Bytes
Versions: 15
Compression:
Stored size: 275 Bytes
Contents
require 'native' module YAML @__yaml__ = node_require 'js-yaml' `var __yaml__ = #{@__yaml__}` def self.load_path path loaded = `__yaml__.safeLoad(#{File}.__fs__.readFileSync(#{path}, 'utf8'))` loaded = Hash.new(loaded) if native?(loaded) loaded end end
Version data entries
15 entries across 15 versions & 1 rubygems