mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 15:06:10 +02:00
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:
parent
f4bbe604f4
commit
10ce5ad1d7
4 changed files with 11 additions and 4 deletions
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue