Sha256: bc08961b884a4bf50c3717ce711594583db40712bfa56d2cc21b8fc6f6d84928
Contents?: true
Size: 927 Bytes
Versions: 32
Compression:
Stored size: 927 Bytes
Contents
# encoding: utf-8 module Mongoid module Extensions module Decimal128 # Evolve the decimal128. # # @example Evolve the decimal128. # decimal128.__evolve_decimal128__ # # @return [ BSON::Decimal128 ] self. # # @since 6.1.0 def __evolve_decimal128__ self end module ClassMethods # Evolve the object into a mongo-friendly value to query with. # # @example Evolve the object. # Decimal128.evolve(dec) # # @param [ Object ] object The object to evolve. # # @return [ BSON::Decimal128 ] The decimal128. # # @since 6.1.0 def evolve(object) object.__evolve_decimal128__ end end end end end BSON::Decimal128.__send__(:include, Mongoid::Extensions::Decimal128) BSON::Decimal128.extend(Mongoid::Extensions::Decimal128::ClassMethods)
Version data entries
32 entries across 30 versions & 2 rubygems