Class: Object::Not

Inherits:
Object show all
Defined in:
lib/patience/core_ext/object.rb

Overview

The original idea belongs to Jay Fields: blog.jayfields.com/2007/08/ruby-adding-not-method-for-readability.html

The Object::Not instances are proxies, that send all calls back to the original instance. The Object::Not class privatizes almost all of its methods so that most method calls will be handled by method_missing.