Module: Mongoid::Extensions::Decimal128

Defined in:
lib/mongoid/extensions/decimal128.rb

Overview

Adds type-casting behavior to BSON::Decimal128 class.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#__evolve_decimal128__BSON::Decimal128

Evolve the decimal128.

Examples:

Evolve the decimal128.

decimal128.__evolve_decimal128__

Returns:

  • (BSON::Decimal128)

    self.



16
17
18
# File 'lib/mongoid/extensions/decimal128.rb', line 16

def __evolve_decimal128__
  self
end