Module: Mongoid::Extensions::Decimal128::ClassMethods

Defined in:
build/mongoid-master/lib/mongoid/extensions/decimal128.rb

Instance Method Summary collapse

Instance Method Details

#evolve(object) ⇒ BSON::Decimal128

Evolve the object into a mongo-friendly value to query with.

Examples:

Evolve the object.

Decimal128.evolve(dec)

Parameters:

  • object (Object)

    The object to evolve.

Returns:

  • (BSON::Decimal128)

    The decimal128.

Since:

  • 6.1.0



32
33
34
# File 'build/mongoid-master/lib/mongoid/extensions/decimal128.rb', line 32

def evolve(object)
  object.__evolve_decimal128__
end