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)


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

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

#test(*args, &pr) ⇒ Object



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

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

#timerObject



178
179
180
181
182
# File 'lib/pretty_debug.rb', line 178

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