Module: Kernel

Defined in:
lib/rspec/core/extensions/kernel.rb

Instance Method Summary collapse

Instance Method Details

#debugger(*args) ⇒ Object

If not already defined by ruby-debug, this implementation prints helpful message to STDERR when ruby-debug is not loaded.



5
6
7
# File 'lib/rspec/core/extensions/kernel.rb', line 5

def debugger(*args)
  (RSpec.configuration.error_stream || $stderr).puts "\n***** debugger statement ignored, use -d or --debug option to enable debugging\n#{caller(0)[1]}"
end