Sha256: 09b0ea937ca7bf2def4352e7da70ab6ffacf6859e5fe913bfbf6674a6cbd0805
Contents?: true
Size: 500 Bytes
Versions: 10
Compression:
Stored size: 500 Bytes
Contents
module DataMapper class Property class Float < Numeric primitive ::Float DEFAULT_SCALE = nil protected # Typecast a value to a Float # # @param [#to_str, #to_f] value # value to typecast # # @return [Float] # Float constructed from value # # @api private def typecast_to_primitive(value) typecast_to_numeric(value, :to_f) end end # class Float end # class Property end # module DataMapper
Version data entries
10 entries across 10 versions & 1 rubygems