Ruby Keyword: not - rking/pry-docmore GitHub Wiki

Boolean negation.

if not x

is equivalent to:

unless x

Note that the precedence is lower than for !. # TODO: elaborate, w/ examples. See: http://phrogz.net/ProgrammingRuby/language.html#table_18.4

⚠️ **GitHub.com Fallback** ⚠️