class StashedInstanceMethod
def restore
- Private: -
def restore return unless @method_is_stashed @klass.__send__(:alias_method, @method, stashed_method_name) @klass.__send__(:remove_method, stashed_method_name) @method_is_stashed = false end
def restore return unless @method_is_stashed @klass.__send__(:alias_method, @method, stashed_method_name) @klass.__send__(:remove_method, stashed_method_name) @method_is_stashed = false end