Class: Pervasives::Proxy

Inherits:
Object show all
Defined in:
lib/pervasives.rb,
lib/pervasives-1.1.0.rb

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Proxy

Returns a new instance of Proxy.



34
35
36
# File 'lib/pervasives.rb', line 34

def initialize obj
  @obj = obj
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *a, &b) ⇒ Object



38
39
40
# File 'lib/pervasives.rb', line 38

def method_missing m, *a, &b
  Pervasives.call @obj, m, *a, &b
end