Sha256: bb345dd7af9ef97b21fefc124bb06937c18c3c73bc8a06b97bf16770b59eeb74
Contents?: true
Size: 513 Bytes
Versions: 24
Compression:
Stored size: 513 Bytes
Contents
module Acfs::Model module Attributes # @api public # # String attribute type. Use it in your model as an attribute type: # # @example # class User # include Acfs::Model # attribute :name, :string # end # module String # @api public # # Cast given object to string. # # @param [Object] obj Object to cast. # @return [String] Casted string. # def self.cast(obj) obj.to_s end end end end
Version data entries
24 entries across 24 versions & 1 rubygems