A debug keyword which enables debug-output for a specific method.
I have found its useful when there is many testcases which fails
at the same time, letting me faster identify where the problem is.
I think this would be a good idea to have distributed with Ruby?
I am thinking of submitting an RCR, should I do this?
Its syntax is
debug :method [, :method]*
What it does is to enable the global flag $debug.
If we type 'debug :test_a1', then we get the following output
server> ruby example.rb
Loaded suite TestA
test_a1(TestA): before #test_a1