Class | Coercible::Coercer::Integer |
In: |
lib/coercible/coercer/integer.rb
|
Parent: | Numeric |
Coerce Fixnum values
Return default config for Integer coercer type
@return [Configuration]
@see Configurable#config
@api private
Coerce given value to a Boolean
@example with a 1
coercer[Integer].to_boolean(1) # => true
@example with a 0
coercer[Integer].to_boolean(0) # => false
@param [Fixnum] value
@return [BigDecimal]
@api public
Passthrough the value
@example
coercer[Integer].to_integer(1) # => 1
@param [Fixnum] value
@return [Float]
@api public