Have you ever noticed that if you run rake -T in rails the list of rake descriptions are truncated by the width of the terminal window. So there should be a way to get it in Rub
I'm a bit late but in rake tasks I do the following: Rake.application.terminal_width