Sha256: f1bc011b0bcd5fd8e63f8b7d59778a97108e0d2c9957dcca33b68c938c5f1a7a

Contents?: true

Size: 365 Bytes

Versions: 1

Compression:

Stored size: 365 Bytes

Contents

module Paysio
  module JSON
    if MultiJson.respond_to?(:dump)
      def self.dump(*args)
        MultiJson.dump(*args)
      end

      def self.load(*args)
        MultiJson.load(*args)
      end
    else
      def self.dump(*args)
        MultiJson.encode(*args)
      end

      def self.load(*args)
        MultiJson.decode(*args)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paysio-1.0.0 lib/paysio/json.rb