Module: Not
- Defined in:
- lib/not.rb
Defined Under Namespace
Classes: NotClass
Instance Method Summary collapse
-
#not ⇒ Object
Negates any command that comes after it.
Instance Method Details
#not ⇒ Object
Negates any command that comes after it.
@foo.nil? # => true
@foo.not.nil? # => false
7 8 9 |
# File 'lib/not.rb', line 7 def not @_not_class ||= NotClass.new(self) end |