From: Brian Candler Date: 2009-12-17T00:59:01+09:00 Subject: Re: Using threads to show progress Aldric Giacomoni wrote: > That's pretty interesting. Are you.. Defining an instance of the class > within the class itself ? Yes. It's just a shortcut to allow you to use a default instance, whilst still allowing you to have multiple instances if you want. > Why are you using STDERR? Just convention really. If the rake task generates useful output, the user may have redirected STDOUT to a file (*). And STDERR is unbuffered by default, so you see the messages immediately without having to flush. (*) Of course, it is possible to redirect stderr too: 2>/dev/null will silence your progress messages. -- Posted via http://www.ruby-forum.com/.