Class: Pervasives::Proxy
Instance Method Summary collapse
-
#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.
34 35 36 |
# File 'lib/main/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/main/pervasives.rb', line 38 def method_missing m, *a, &b Pervasives.call @obj, m, *a, &b end |