Sha256: 7f0f15d998b7cd50ff5b200bf11aec92fe77777464b4495ea9ce2a161004d123

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

module ASS
  module JSON
    require 'json'
    def self.load(raw)
      JSON.parse(raw)
    end

    def self.dump(obj)
      obj.to_json
    end
  end

  module Marshal
    def self.load(raw)
      ::Marshal.load(raw)
    end

    def self.dump(obj)
      ::Marshal.dump(obj)
    end
  end

  # mongodb BSON
  module BSON
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
donkey-0.1.0 lib/ass/serializers.rb