diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-27 22:13:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-27 22:13:50 +0000 |
commit | 46f23b51f6f86d7261fed63bec4b06910ca05597 (patch) | |
tree | 79a8a100faba6ffda880b5418f5b393e5cbce389 /lib | |
parent | fbcde451c5c505d3a3a121183e933ffd1be862de (diff) | |
download | ruby-46f23b51f6f86d7261fed63bec4b06910ca05597.tar.gz |
* lib/pp.rb (Struct#pretty_print): coerce to a string since
anonymous class has name no longer. [ruby-dev:38349]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -361,7 +361,7 @@ end class Struct def pretty_print(q) - q.group(1, '#<struct ' + PP.mcall(self, Kernel, :class).name, '>') { + q.group(1, sprintf("#<struct %s", PP.mcall(self, Kernel, :class).name), '>') { q.seplist(PP.mcall(self, Struct, :members), lambda { q.text "," }) {|member| q.breakable q.text member.to_s |