From: Nikolai Weibull Date: 2010-05-28T21:42:35+09:00 Subject: [ruby-core:30487] Conventions for implementing #inspect What exactly is the convention for writing an #inspect method? The core isn���t that consistent. Some definitions return a string in the actual read syntax, for example, String. Others, that lack a read syntax, return # (File::Stat), # (Dir), or # (Enumerator). Finally, some return the same result as #to_s-, for example, Time. Read syntax makes sense. The # convention makes sense, but why is it applied inconsistently? What is the reasoning behind returning whatever #to_s returns? Is it simply obvious enough what the data the string represents that returning something like # would be silly?