Skip to content
instance method

TrueClass#^

(false | nil) -> true
(untyped obj) -> bool
true ^ object → !object

Returns true if object is false or nil, false otherwise:

Example
true ^ Object.new # => false
true ^ false      # => true
true ^ nil        # => true
See also #=== #| #& #inspect also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0