summaryrefslogtreecommitdiff
path: root/lib/date.rb
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-11 11:02:24 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-11 11:02:24 +0000
commit10ce5ad1d714bafbeecb7d7f42d476a4e38cfe0d (patch)
treeddf5cdd8621ff9959e58b766523701badc49708c /lib/date.rb
parentf4bbe604f4d082422bb6789cd6efb4562fc6a055 (diff)
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
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 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.
#