Class: Unpatched::MultiWrapper

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/unpatched.rb

Instance Method Summary collapse

Methods inherited from Wrapper

#and, const_missing, #inspect

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