Sha256: ecda20866967387f404d3ab511c5e5803c410e726f4719a919e0bffdcd6ecd62

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

require 'map'


require 'rubygems'
require 'mongoid'

class Map
  include Mongoid::Fields::Serializable

  def default(*args)
    @default
  end

  def deserialize(object)
    Map.for(object.to_hash)
  end

  def serialize(object)
    object.to_hash
  end
end

m = Map.new
m[:key]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
map-4.7.1 a.rb
map-4.7.0 a.rb