# File lib/rspec/mocks/extensions/psych.rb, line 4 4: def dump_with_mocks(object, *args) 5: return dump_without_mocks(object, *args) unless object.instance_variable_defined?(:@mock_proxy) 6: 7: mp = object.instance_variable_get(:@mock_proxy) 8: return dump_without_mocks(object, *args) unless mp.is_a?(::RSpec::Mocks::Proxy) 9: 10: object.__send__(:remove_instance_variable, :@mock_proxy) 11: 12: begin 13: dump_without_mocks(object, *args) 14: ensure 15: object.instance_variable_set(:@mock_proxy, mp) 16: end 17: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.