diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-10 22:57:01 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-10 22:57:01 +0000 |
commit | e8c67503ea26537762353d560d0b485fd40a77e7 (patch) | |
tree | 596f14575611f28724b89b6fbe5e207ac03d2f80 /lib | |
parent | fd93c804821a1ae21d7ad32bf97ad79023b57048 (diff) | |
download | ruby-e8c67503ea26537762353d560d0b485fd40a77e7.tar.gz |
* lib/date.rb (inspect): changed the format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/date.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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. # |