зеркало из https://github.com/github/ruby.git
add pretty_print
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
95be40a06d
Коммит
0562a84558
|
@ -1,3 +1,7 @@
|
|||
Sat Feb 14 11:14:12 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* lib/drb/drb.rb: add pretty_print, thanks gotoken.
|
||||
|
||||
Fri Feb 13 21:51:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
|
||||
|
||||
* lib/fileutils.rb: slighly improved documentation (sync with 1.8)
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче