class Attribrutal::Type::Integer
Public Class Methods
coerce(arg, default = nil)
click to toggle source
# File lib/attribrutal/coercion.rb, line 15 def self.coerce(arg, default = nil) if arg.nil? default else Integer(arg) end end