module IsAssertions
Constants
- VERSION
Public Instance Methods
is(value, type)
click to toggle source
# File lib/is_assertions.rb, line 6 def is(value, type) if !value.is_a?(type) raise IsAssertionsError, "value #{value.inspect} must be of type #{type}", caller(1) end end