Sha256: 044d9357106e72f78401b6a3e422a36bafc7a7b32e7dfe59d98806c78a85737e

Contents?: true

Size: 328 Bytes

Versions: 22

Compression:

Stored size: 328 Bytes

Contents

module Moped
  module BSON
    # @private
    module Extensions
      module NilClass
        module ClassMethods
          def __bson_load__(io)
            nil
          end
        end

        def __bson_dump__(io, key)
          io << Types::NULL
          io << key.to_bson_cstring
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/moped-1.3.2/lib/moped/bson/extensions/nil_class.rb
moped-1.3.2 lib/moped/bson/extensions/nil_class.rb
moped-1.3.1 lib/moped/bson/extensions/nil_class.rb
moped-1.3.0 lib/moped/bson/extensions/nil_class.rb
moped-1.2.9 lib/moped/bson/extensions/nil_class.rb
moped-1.2.8 lib/moped/bson/extensions/nil_class.rb
moped-1.2.7 lib/moped/bson/extensions/nil_class.rb
moped-1.2.6 lib/moped/bson/extensions/nil_class.rb
moped-1.2.5 lib/moped/bson/extensions/nil_class.rb
moped-1.2.4 lib/moped/bson/extensions/nil_class.rb
moped-1.2.2 lib/moped/bson/extensions/nil_class.rb
moped-1.2.1 lib/moped/bson/extensions/nil_class.rb
moped-1.2.0 lib/moped/bson/extensions/nil_class.rb
moped-1.1.6 lib/moped/bson/extensions/nil_class.rb
moped-1.1.5 lib/moped/bson/extensions/nil_class.rb
moped-1.1.4 lib/moped/bson/extensions/nil_class.rb
moped-1.1.3 lib/moped/bson/extensions/nil_class.rb
moped-1.1.2 lib/moped/bson/extensions/nil_class.rb
moped-1.0.1 lib/moped/bson/extensions/nil_class.rb
moped-1.1.1 lib/moped/bson/extensions/nil_class.rb