Class: Unpatched::MultiWrapper
Instance Method Summary collapse
-
#initialize(base, value) ⇒ MultiWrapper
constructor
A new instance of MultiWrapper.
Methods inherited from Wrapper
Constructor Details
#initialize(base, value) ⇒ MultiWrapper
Returns a new instance of MultiWrapper.
73 74 75 |
# File 'lib/unpatched.rb', line 73 def initialize(base, value) @base, @value = base, Utils.wrapped(value) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*a, &b) ⇒ Object (private)
78 79 80 |
# File 'lib/unpatched.rb', line 78 def method_missing(*a, &b) @base + @value.__send__(*a, &b) end |