123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Extended In:
Defined in: lib/mongoid/extensions/decimal128.rb

Instance Method Summary

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:

[ GitHub ]

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

def evolve(object)
  object.__evolve_decimal128__
end