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
ENV['COLUMNS'] will give you the number of columns in the terminal.