From: Ryan Davis Date: 2008-08-14T08:49:59+09:00 Subject: Re: Odd behaviour of custom "inspect" method On Aug 13, 2008, at 14:21 , John Winters wrote: > Can anyone explain this for me? > > john@liberty:~/Work/Coding/Xronos/test$ cat testpadding.rb > class Padding > > def inspect > '.' * 4 > end > > end > john@liberty:~/Work/Coding/Xronos/test$ irb -r testpadding.rb >>> a = Padding.new > => ...... >>> a.inspect > => "...." wfm: >> a = Padding.new => .... >> a.inspect => "...." >> RUBY_VERSION => "1.8.6"