Method: Assert.assert
- Defined in:
- lib/common/assert.rb
.assert(condition, msg = nil) ⇒ Object
22 23 24 25 26 |
# File 'lib/common/assert.rb', line 22 def Assert.assert( condition, msg=nil ) if ( condition != true ) raise_exception( caller, 'condition was false', msg ) end end |