Class: Pervasives::Proxy

Inherits:
Object show all
Defined in:
lib/flatulent/pervasives.rb

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Proxy

Returns a new instance of Proxy.



22
23
24
# File 'lib/flatulent/pervasives.rb', line 22

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



25
26
27
# File 'lib/flatulent/pervasives.rb', line 25

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

Instance Method Details

#__obj__Object



28
29
30
# File 'lib/flatulent/pervasives.rb', line 28

def __obj__
  @obj
end