diff options
| author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-24 10:55:00 +0000 |
|---|---|---|
| committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-24 10:55:00 +0000 |
| commit | 61e706902381269659c41e1b1c3b877d8ec269d4 (patch) | |
| tree | 49d5f54c1262b38dc2e14d552d64d56420bca23a /lib | |
| parent | 6a0a781b8cca39b6af898962993a1f5e1bb2024d (diff) | |
| download | ruby-61e706902381269659c41e1b1c3b877d8ec269d4.tar.gz ruby-61e706902381269659c41e1b1c3b877d8ec269d4.tar.xz ruby-61e706902381269659c41e1b1c3b877d8ec269d4.zip | |
* lib/date.rb (inspect): changed again.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20337 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 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. # |
