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

Defined in:
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.



30
31
32
# File 'lib/mongoid/extensions/decimal128.rb', line 30

def evolve(object)
  object.__evolve_decimal128__
end