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
This commit is contained in:
yugui 2008-11-11 11:02:24 +00:00
parent f4bbe604f4
commit 10ce5ad1d7
4 changed files with 11 additions and 4 deletions

View file

@ -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.
#