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 +- lib/irb/completion.rb | 2 +- lib/shell/command-processor.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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 diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 67a0e5c7fb..c207cf09ef 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -140,7 +140,7 @@ module IRB ObjectSpace.each_object(Module){|m| next if m.name != "IRB::Context" and /^(IRB|SLex|RubyLex|RubyToken)/ =~ m.name - candidates.concat m.instance_methods + candidates.concat m.instance_methods(false) } candidates.sort! candidates.uniq! diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb index 0c65d3be36..07879567fd 100644 --- a/lib/shell/command-processor.rb +++ b/lib/shell/command-processor.rb @@ -31,7 +31,7 @@ class Shell install_builtin_commands # define CommandProccessor#methods to Shell#methods and Filter#methods - for m in CommandProcessor.instance_methods - NoDelegateMethods + for m in CommandProcessor.instance_methods(false) - NoDelegateMethods add_delegate_command_to_shell(m) end @@ -558,7 +558,7 @@ class Shell # method related FileTest def_builtin_commands(FileTest, - FileTest.singleton_methods.collect{|m| [m, ["FILENAME"]]}) + FileTest.singleton_methods(false).collect{|m| [m, ["FILENAME"]]}) # method related ftools normal_delegation_ftools_methods = [ -- cgit v1.2.3