Sha256: 29c20bc1e3836d69c17ce488801b4533335084dd47de7877fe5d9de71a8d6535

Contents?: true

Size: 446 Bytes

Versions: 163

Compression:

Stored size: 446 Bytes

Contents

require 'yajl' unless defined?(::Yajl)

module MultiJson
  module Adapters
    # Use the Yajl-Ruby library to dump/load.
    class Yajl
      ParseError = ::Yajl::ParseError

      def self.load(string, options={}) #:nodoc:
        ::Yajl::Parser.new(:symbolize_keys => options[:symbolize_keys]).parse(string)
      end

      def self.dump(object, options={}) #:nodoc:
        ::Yajl::Encoder.encode(object, options)
      end
    end
  end
end

Version data entries

163 entries across 94 versions & 17 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.7.5 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.7.4 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.7.4 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.7.3 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.7.3 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.7.2 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.7.2 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.7.1 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
classiccms-0.7.1 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.7.0 vendor/bundle/gems/multi_json-1.3.4/lib/multi_json/adapters/yajl.rb
classiccms-0.7.0 vendor/bundle/gems/multi_json-1.3.5/lib/multi_json/adapters/yajl.rb
challah-1.0.0.beta vendor/bundle/gems/multi_json-1.4.0/lib/multi_json/adapters/yajl.rb
multi_json-1.5.1 lib/multi_json/adapters/yajl.rb
graphael-on-rails-0.5.1 vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
graphael-on-rails-0.0.1 vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
challah-0.9.1.beta.3 vendor/bundle/gems/multi_json-1.4.0/lib/multi_json/adapters/yajl.rb
devise_sociable-0.1.0 vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
backbone-queryparams-rails-0.0.1 vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb
railscast-assets-0.0.2 vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb