Module: Not

Defined in:
lib/not.rb

Defined Under Namespace

Classes: NotClass

Instance Method Summary collapse

Instance Method Details

#notObject

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