method

assert_not_nil

assert_not_nil(exp, msg=nil)
public

Tests if expression is not nil.

An optional failure message may be provided as the final argument.