mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add pretty_print
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cb5c6d897c
commit
2766990624
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue