Sha256: f6f757d9796eff8244b5788f6fc97e5058f413c31791d0881cc966743132a5e2

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

module MongoDoc
  module ValueEquals
    def ==(other)
      return false unless instance_variables.size == other.instance_variables.size
      instance_variables.all? {|var| self.instance_variable_get(var) == other.instance_variable_get(var)}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongodoc-0.0.0 lib/mongodoc/value_equals.rb