Sha256: ab4ef2b722072027c416238263e5a60bef3af46f1d6e15b92ac75d1005240936
Contents?: true
Size: 926 Bytes
Versions: 5
Compression:
Stored size: 926 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 5.2.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 5.2.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
5 entries across 5 versions & 1 rubygems