summaryrefslogtreecommitdiffstats
path: root/lib/date.rb
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
commita7b10f92bfc49a3beb483d85e66d6c894a48564e (patch)
tree596f14575611f28724b89b6fbe5e207ac03d2f80 /lib/date.rb
parent4619c8df1c78b5fbb696702c20ca1510afc1287c (diff)
downloadruby-a7b10f92bfc49a3beb483d85e66d6c894a48564e.tar.gz
ruby-a7b10f92bfc49a3beb483d85e66d6c894a48564e.tar.xz
ruby-a7b10f92bfc49a3beb483d85e66d6c894a48564e.zip
* lib/date.rb (inspect): changed the format.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date.rb')
-rw-r--r--lib/date.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/date.rb b/lib/date.rb
index 3da3d21f8..2c9792562 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.
#