Sha256: 5de7936d2d11bcf3f7668200432abb36c5f3de83d9a3a4227bff4c935ea32af6
Contents?: true
Size: 878 Bytes
Versions: 29
Compression:
Stored size: 878 Bytes
Contents
# frozen_string_literal: true module Mongoid module Extensions module Decimal128 # Evolve the decimal128. # # @example Evolve the decimal128. # decimal128.__evolve_decimal128__ # # @return [ BSON::Decimal128 ] self. 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. 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
29 entries across 29 versions & 1 rubygems