summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-10 22:57:01 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-10 22:57:01 +0000
commite8c67503ea26537762353d560d0b485fd40a77e7 (patch)
tree596f14575611f28724b89b6fbe5e207ac03d2f80 /lib
parentfd93c804821a1ae21d7ad32bf97ad79023b57048 (diff)
downloadruby-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.rb4
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.
#