module Origin::Extensions::BigDecimal::ClassMethods
Public Instance Methods
evolve(object)
click to toggle source
Evolves the big decimal into a MongoDB friendly value - in this case a string.
@example Evolve the big decimal
BigDecimal.evolve(decimal)
@param [ BigDecimal ] object The object to convert.
@return [ String ] The big decimal as a string.
@since 1.0.0
# File lib/origin/extensions/big_decimal.rb, line 22 def evolve(object) __evolve__(object) do |obj| obj ? obj.to_s : obj end end