Exception: Kernel::AssertionException

Inherits:
Exception
  • Object
show all
Defined in:
lib/extensions/kernel_extensions.rb

Overview

Adds assertion capabilities to ruby. The assert function will raise an error if the inner block returns false. The error will contain the file, line number and source line of the failing assertion.