Sha256: 5626acb9e032c2f079937505b31ad8b7247fded481dfad54e2d4ef07bd86ccbe

Contents?: true

Size: 425 Bytes

Versions: 96

Compression:

Stored size: 425 Bytes

Contents

require 'gson' unless defined?(::Gson)

module MultiJson
  module Adapters
    # Use the gson.rb library to dump/load.
    module Gson
      extend self

      ParseError = ::Gson::DecodeError

      def load(string, options={}) #:nodoc:
        ::Gson::Decoder.new(options).decode(string)
      end

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

Version data entries

96 entries across 94 versions & 7 rubygems

Version Path
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.1.0.rc1 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.0.7 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.1.0.pre lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
engineyard-serverside-2.0.6 lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
remq-0.0.4 vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
remq-0.0.3 vendor/bundle/gems/multi_json-1.6.1/lib/multi_json/adapters/gson.rb
multi_json-1.6.1 lib/multi_json/adapters/gson.rb
multi_json-1.6.0 lib/multi_json/adapters/gson.rb