gems.multi_json-1.11.0.lib.multi_json.adapters.yajl.rb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sass-maven-plugin Show documentation
Show all versions of sass-maven-plugin Show documentation
A Maven Plugin that compiles Sass files.
require 'yajl'
require 'multi_json/adapter'
module MultiJson
module Adapters
# Use the Yajl-Ruby library to dump/load.
class Yajl < Adapter
ParseError = ::Yajl::ParseError
def load(string, options={})
::Yajl::Parser.new(:symbolize_keys => options[:symbolize_keys]).parse(string)
end
def dump(object, options={})
::Yajl::Encoder.encode(object, options)
end
end
end
end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy