Method: XDry::MethodPatcher#initialize
- Defined in:
- lib/xdry/patching/item_patchers.rb
#initialize(patcher, oclass, selector, insertion_point, new_code) ⇒ MethodPatcher
Returns a new instance of MethodPatcher.
53 54 55 56 57 58 59 |
# File 'lib/xdry/patching/item_patchers.rb', line 53 def initialize patcher, oclass, selector, insertion_point, new_code @oclass = oclass @selector = selector @insertion_point = insertion_point @new_code = new_code super(patcher) end |