Module: Kernel

Defined in:
lib/pretty_debug.rb,
lib/pretty_debug.rb

Instance Method Summary collapse

Instance Method Details

#raise?(*args, &pr) ⇒ Boolean

Returns:

  • (Boolean)


211
# File 'lib/pretty_debug.rb', line 211

def raise? *args, ≺ Test.raise?(*args, &pr) end

#test(*args, &pr) ⇒ Object



210
# File 'lib/pretty_debug.rb', line 210

def test *args, ≺ Test.test(*args, &pr) end

#timerObject



212
213
214
215
216
# File 'lib/pretty_debug.rb', line 212

def timer
	t = Time.now
	yield
	puts "(#{"%.2e" % t.till_now} secs)".color(:green)
end