Sha256: 29359ee28b72aa6ba7f05b877a9446108495e9d94d098eabd08648f20b2bf96f
Contents?: true
Size: 456 Bytes
Versions: 5
Compression:
Stored size: 456 Bytes
Contents
module Acfs::Resource::Attributes # @api public # # Float attribute type. Use it in your model as an attribute type: # # @example # class User < Acfs::Resource # attribute :name, :float # end # class Float < Base # @api public # # Cast given object to float. # # @param [Object] obj Object to cast. # @return [Float] Casted object as float. # def cast_type(obj) Float obj end end end
Version data entries
5 entries across 5 versions & 1 rubygems