# File lib/rspec/mocks/extensions/marshal.rb, line 3 3: def dump_with_mocks(*args) 4: object = args.shift 5: return dump_without_mocks(*args.unshift(object)) unless object.instance_variable_defined?(:@mock_proxy) 6: 7: mp = object.instance_variable_get(:@mock_proxy) 8: return dump_without_mocks(*args.unshift(object)) unless mp.is_a?(::RSpec::Mocks::Proxy) 9: 10: object.__send__(:remove_instance_variable, :@mock_proxy) 11: 12: begin 13: dump_without_mocks(*args.unshift(object.dup)) 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.