Class: This::NSThisProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/this.rb

Instance Method Summary collapse

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