Class: Object::Not
Instance Method Summary collapse
-
#initialize(subject) ⇒ Not
constructor
A new instance of Not.
- #method_missing(sym, *args, &blk) ⇒ Object
Constructor Details
#initialize(subject) ⇒ Not
Returns a new instance of Not.
8 9 10 |
# File 'lib/utility_belt/not.rb', line 8 def initialize(subject) @subject = subject end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &blk) ⇒ Object
11 12 13 |
# File 'lib/utility_belt/not.rb', line 11 def method_missing(sym, *args, &blk) !@subject.send(sym,*args,&blk) end |