Bret Pettichord wrote: > Lennart Borgman (gmail) wrote: >>> Actually IO#sync means that you should call the sync method on an object >>> that belongs to the IO class. It does not represent executable Ruby >>> code. In your case it means to do $stdout.sync, as originally suggested. >>> >> Thanks, I had no idea of that. Is that some kind of meta language for >> Ruby or is it more general? >> > It is a Ruby-specific meta language. It is often used in rdoc. I've seen > this lead to lots of confusion. > > I would express this idea (IO#sync) thus: > io.sync = true > > And the reader would then have to understand that "io" was an instance > of the IO class. > > Bret
In my case I believe it would have lead to even more confusion. Maybe I could have understood something like #IO#.sync = true _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general