Sha256: a87135942aeddedd30807a06e7f1a6b7d99c4d2052429768cf3c1369c8b7fa1e
Contents?: true
Size: 568 Bytes
Versions: 20
Compression:
Stored size: 568 Bytes
Contents
module Virtus class Attribute # Integer # # @example # class Post # include Virtus # # attribute :read_count, Integer # end # # Post.new(:read_count => 100) # # # typecasting from a string # Post.new(:read_count => '100') # # # typecasting from an object that implements #to_i # Post.new(:read_count => 100.0) # class Integer < Numeric primitive ::Integer coercion_method :to_integer end # class Integer end # class Attribute end # module Virtus
Version data entries
20 entries across 20 versions & 3 rubygems