Class/Module Index [+]

Quicksearch

Psych

Public Class Methods

dump(object, *args) click to toggle source
Also aliased as: dump_without_mocks
Alias for: dump_with_mocks
dump_with_mocks(object, *args) click to toggle source
# File lib/rspec/mocks/extensions/psych.rb, line 4
def dump_with_mocks(object, *args)
  return dump_without_mocks(object, *args) unless object.instance_variable_defined?(:@mock_proxy)

  mp = object.instance_variable_get(:@mock_proxy)
  return dump_without_mocks(object, *args) unless mp.is_a?(::RSpec::Mocks::Proxy)

  object.__send__(:remove_instance_variable, :@mock_proxy)

  begin
    dump_without_mocks(object, *args)
  ensure
    object.instance_variable_set(:@mock_proxy, mp)
  end
end
Also aliased as: dump
dump_without_mocks(object, *args) click to toggle source
Alias for: dump

[Validate]

Generated with the Darkfish Rdoc Generator 2.