From: David Masover Date: 2009-09-24T08:25:19+09:00 Subject: Re: How do you limit the line length of the output commands? Where is pqueue library documented? On Wednesday 23 September 2009 04:59:23 pm Mason Kelsey wrote: > In the puts code > example below, I want to break between every 10 methods or just go to a new > line after every 60 characters that get displayed so they don't run off the > screen. It sounds like you're viewing your output in something wacky, like Notepad. Terminals usually wrap things, and so do good text editors -- they'll just wrap by character, not by word or method. I don't know that there's an "easy way" as in "built into the language", but there's probably a library to at least wrap on word. After all, it's not really a property of the IO itself, it's more string manipulation. > Is > there a secret parameter for controlling the line length before word wrap > occurs in these commands? Word wrap does not occur in these commands. If you're seeing word-wrapping at all, again, that's likely a text editor or a terminal doing it for you. If it's a terminal, I'm really not sure what you're complaining about -- just resize the terminal window. > Second question: The pqueue library is not documented in > http://www.ruby-doc.org/stdlib/ . Yeah, I have no idea where you got it from. I can't find it in my standard library for 1.8 or 1.9, or in Are you sure you didn't install a gem or something?