module Okuribito::SimplePatchModule

Private Instance Methods

define_patch(method_name, _patch, _id, _opt = {}) { |to_s, caller| ... } click to toggle source
Calls superclass method
# File lib/okuribito/patch_module.rb, line 6
def define_patch(method_name, _patch, _id, _opt = {})
  define_method(method_name) do |*args|
    yield(to_s, caller) if block_given?
    super(*args)
  end
end