From c3584231bad01fd85827814f640590de7a9637ad Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 22 May 2003 16:37:22 +0000 Subject: * object.c (rb_obj_clone): defer copying freezing state after calling initialize_copy(). [ruby-dev:20276] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/debug.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/debug.rb') diff --git a/lib/debug.rb b/lib/debug.rb index ab32c9d023..1b558ab90f 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -231,7 +231,7 @@ class Context stdout.print "Should be Class/Module: ", input, "\n" else len = 0 - for v in obj.instance_methods.sort + for v in obj.instance_methods(false).sort len += v.size + 1 if len > 70 len = v.size + 1 -- cgit v1.2.3