method

reset_proxied_method

Importance_0
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Mocks::Proxy
reset_proxied_method(sym) private

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/mocks/proxy.rb, line 234
      def reset_proxied_method(sym)
        munged_sym = munge(sym)
        target_metaclass.instance_eval do
          remove_method sym
          if method_defined?(munged_sym)
            alias_method sym, munged_sym
            remove_method munged_sym
          end
        end
      end
Register or log in to add new notes.