Class: This::NSThisProxy
- Inherits:
-
Object
- Object
- This::NSThisProxy
- Defined in:
- lib/this.rb
Instance Method Summary collapse
-
#initialize(obj) ⇒ NSThisProxy
constructor
A new instance of NSThisProxy.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize(obj) ⇒ NSThisProxy
Returns a new instance of NSThisProxy.
7 8 9 |
# File 'lib/this.rb', line 7 def initialize(obj) @obj = obj end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
11 12 13 |
# File 'lib/this.rb', line 11 def method_missing(name, *args, &block) @obj.send(name, *args, &block) end |