From: John Winters Date: 2008-08-14T14:37:22+09:00 Subject: Re: Odd behaviour of custom "inspect" method Ryan Davis wrote: > On Aug 13, 2008, at 14:21 , John Winters wrote: > >> 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" Interesting. I had assumed it was an artefact of me using the '.' symbol (something to do with regex?) but it starts to sound like an actual bug. I'm on Ruby 1.8.7. I've expanded the code slightly and it gets odder. ... actually it gets extraordinarily odd. As I was preparing a transcript to post it suddenly started working as expected - even when I use the original files with which I tested yesterday. That's the kind of bug I really hate - I can't reproduce it now, although I could when I started to produce the transcript. For the record, I'm running 64-bit Debian Etch with the packaged version of Ruby 1.8.7. John -- Posted via http://www.ruby-forum.com/.