Sha256: 015c1c67ec28737d048747ad9d117384656afde5c392a6e2287b3db2616bb1f1

Contents?: true

Size: 296 Bytes

Versions: 7

Compression:

Stored size: 296 Bytes

Contents

require 'native'
require_relative './js-yaml-3-6-1'

module YAML
  @__yaml__ = `jsyaml`
  `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

7 entries across 7 versions & 1 rubygems

Version Path
opal-0.11.4 stdlib/nodejs/yaml.rb
opal-0.11.3 stdlib/nodejs/yaml.rb
opal-0.11.2 stdlib/nodejs/yaml.rb
opal-0.11.1 stdlib/nodejs/yaml.rb
opal-0.11.1.pre stdlib/nodejs/yaml.rb
opal-0.11.0 stdlib/nodejs/yaml.rb
opal-0.11.0.rc1 stdlib/nodejs/yaml.rb