From: gabriele renzi Date: 2003-03-30T23:29:37+09:00 Subject: Re: [Ruby] Java-like toString() method? il Sun, 30 Mar 2003 10:28:30 +0200, "Frank Thomas" ha scritto:: >Test t = new Test(); >System.out.print(t); // -> "This is a test-class" > >### > >I believe the inspect() method is the equivalent in ruby. (By the way: i I still think to_s is the right thing. Having a string like "bla\n" inspected you get the newline escaped, instead of a real new line. Just, while java println knows how to handle various types, puts or print need strings, and I think this is The Right Thing (TM)