Class: Pervasives::Proxy
Instance Method Summary collapse
- #__obj__ ⇒ Object
-
#initialize(obj) ⇒ Proxy
constructor
A new instance of Proxy.
- #method_missing(m, *a, &b) ⇒ Object
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 |