21.11.2009

Irb tab-completion

Wowza! I just had a brief peek at The Ruby Way -book by Hal Fulton. It's chock full of tasty tips, such as this one: Irb tab completion. Check it out!

Just paste this into your .irbrc:

IRB.conf[:AUTO_INDENT] = true
IRB.conf[:USE_READLINE] = true
IRB.conf[:LOAD_MODULES] ||= []
IRB.conf[:LOAD_MODULES] |= ['irb/completion']