diff options
author | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-14 02:16:05 +0000 |
---|---|---|
committer | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-14 02:16:05 +0000 |
commit | 27669906241b4b965ab20068f773b878c8ed2598 (patch) | |
tree | fec030fd25a76edb0a02d52f37c9b27f625d21f7 /lib/drb | |
parent | cb5c6d897c01f25fbe48e88835ee657e4620cfec (diff) |
add pretty_print
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/drb')
-rw-r--r-- | lib/drb/drb.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index 80beb02443..ca32dfe90f 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -1030,6 +1030,17 @@ module DRb raise result end end + + def pretty_print(q) # :nodoc: + q.pp_object(self) + end + + def pretty_print_cycle(q) # :nodoc: + q.object_address_group(self) { + q.breakable + q.text '...' + } + end end # Class handling the connection between a DRbObject and the |