Wrap text
|
|
# Quick benchmarking
def quick(repetitions, *blocks)
require 'benchmark'
Benchmark.bmbm {|b|
blocks.each {|block|
b.report {repetitions.times &block}
}
}
nil
end
# RI access
def ri(obj = '')
puts `ri #{obj}`
end
def reset_irb()
exec $0
end
IRB.conf[:AUTO_INDENT] = true
IRB.conf[:USE_READLINE] = true
require 'irb/completion'
|