Class: Not::NotClass
- Inherits:
-
Object
- Object
- Not::NotClass
- Defined in:
- lib/not.rb
Overview
NotClass is the proxy object to perform other commands from.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (private)
The not-class is a proxy, but with negation. Send any method to it’s base object
27 28 29 |
# File 'lib/not.rb', line 27 def method_missing(method, *args, &block) not @base.send(method, *args, &block) end |