Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
# 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'
From the Design Piracy series on my blog: