From f02b261c8beb0cea7cc27f7a3fcef43a7900fde0 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 20 Sep 2006 04:18:25 +0000 Subject: * string.c (sym_eql): fail early to gain performance. * string.c (sym_hash): cache hash value in aux.shared if possible. * gc.c (rb_obj_id): no need to treat symbols specially. * lib/fileutils.rb (FileUtils::FileUtils): singleton_methods() no longer return an array of strings, but of symbols. * lib/delegate.rb (DelegateClass): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/fileutils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/fileutils.rb') diff --git a/lib/fileutils.rb b/lib/fileutils.rb index f551c65cb..c80a69e55 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -1492,8 +1492,8 @@ module FileUtils OPT_TABLE.keys.select {|m| OPT_TABLE[m].include?(opt) } end - METHODS = singleton_methods() - %w( private_module_function - commands options have_option? options_of collect_method ) + METHODS = singleton_methods() - [:private_module_function, + :commands, :options, :have_option?, :options_of, :collect_method] # # This module has all methods of FileUtils module, but it outputs messages -- cgit