Sha256: 866ee23df3859a2c09f3c93d7c83285cdcfbfa7e0a485900bcc2fafb6007fd66
Contents?: true
Size: 462 Bytes
Versions: 17
Compression:
Stored size: 462 Bytes
Contents
module Acfs::Resource::Attributes # @api public # # String attribute type. Use it in your model as # an attribute type: # # @example # class User < Acfs::Resource # attribute :name, :string # end # class String < Base # @api public # # Cast given object to string. # # @param [Object] value Object to cast. # @return [String] Casted string. # def cast_value(value) value.to_s end end end
Version data entries
17 entries across 17 versions & 1 rubygems