module Insist::Assert
Public Instance Methods
Source
# File lib/insist/assert.rb, line 7 def assert(truthy, message) raise Insist::Failure.new(message) if !truthy end
Assert
something is true.
This will raise Insist::Failure
with the given message if the ‘truthy’ value is false.