class Extant::Coercers::Integer

Public Instance Methods

coerce() click to toggle source
# File lib/extant/coercers/integer.rb, line 3
def coerce
  result = Integer(value)
  self.coerced = true
  result
rescue ArgumentError, TypeError
  UncoercedValue
end