From 10ce5ad1d714bafbeecb7d7f42d476a4e38cfe0d Mon Sep 17 00:00:00 2001 From: yugui Date: Tue, 11 Nov 2008 11:02:24 +0000 Subject: merges r20175 from trunk into ruby_1_9_1. * lib/date.rb (inspect): changed the format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/date.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/date.rb b/lib/date.rb index 3da3d21f8b..2c9792562b 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -1470,7 +1470,9 @@ class Date def hash() @ajd.hash end # Return internal object state as a programmer-readable string. - def inspect() format('#<%s: %s,%s,%s>', self.class, @ajd, @of, @sg) end + def inspect + format('#<%s: %s (%s,%s,%s)>', self.class, to_s, @ajd, @of, @sg) + end # Return the date as a human-readable string. # -- cgit v1.2.3