From: John Winters Date: 2008-08-14T06:21:53+09:00 Subject: Odd behaviour of custom "inspect" method 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 => "...." >> The inspect method seems to return a string consisting of 4 full stops, and yet irb displays six. Why? If inspect returns a string of any other letter it seems to work as expected. John -- Posted via http://www.ruby-forum.com/.