diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/drb/drb.rb | 11 |
2 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Sat Feb 14 11:08:23 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp> + + * lib/drb/drb.rb: add pretty_print, thanks gotoken. + Fri Feb 13 12:35:08 2004 Minero Aoki <aamine@loveruby.net> * test/fileutils/test_fileutils.rb: File.link may raise EINVAL and 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 |