module Thy::Types::Integer
Public Class Methods
check(value)
click to toggle source
# File lib/thy/types/integer.rb, line 6 def self.check(value) if value.is_a?(::Integer) Result::Success else Result::Failure.new("Expected an Integer, but got: #{value.inspect}") end end