Sha256: 31030c69929f53cc697651101a094b37f619129dc3225da31b4f32327da16289

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

require 'multi_json'

if !MultiJson.respond_to?(:load) || MultiJson.method(:load).owner == Kernel
  module MultiJson
    class <<self
      alias :load :decode
    end
  end
end
if !MultiJson.respond_to?(:dump)
  module MultiJson
    class <<self
      alias :dump :encode
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google-api-client-0.5.0 lib/compat/multi_json.rb