Module: Rook::Assertion
Instance Method Summary collapse
- #assert(expr, message) ⇒ Object
- #assert_failed(message) ⇒ Object (also: #assert!)
Instance Method Details
#assert(expr, message) ⇒ Object
37 38 39 |
# File 'lib/rook.rb', line 37 def assert(expr, ) raise AssertionError.new() unless expr end |
#assert_failed(message) ⇒ Object Also known as: assert!
40 41 42 |
# File 'lib/rook.rb', line 40 def assert_failed() raise AssertionError.new() end |