class Shale::Type::Integer

Cast value to Integer

@api public

Public Class Methods

cast(value) click to toggle source

@param [#to_i, nil] value Value to cast

@return [Integer, nil]

@api private

# File lib/shale/type/integer.rb, line 16
def self.cast(value)
  value&.to_i
end