summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/delegate.rb6
-rw-r--r--lib/fileutils.rb4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb
index 165e54a727..a961cbaad3 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -262,9 +262,9 @@ def DelegateClass(superclass)
klass = Class.new
methods = superclass.public_instance_methods(true)
methods -= [
- "__id__", "object_id", "__send__", "__send", "__send!", "respond_to?", "send", "funcall",
- "==", "equal?", "initialize", "method_missing", "__getobj__", "__setobj__",
- "clone", "dup", "marshal_dump", "marshal_load",
+ :__id__, :object_id, :__send__, :__send, :__send!, :respond_to?, :send, :funcall,
+ :==, :equal?, :initialize, :method_missing, :__getobj__, :__setobj__,
+ :clone, :dup, :marshal_dump, :marshal_load,
]
klass.module_eval {
include Delegator::MethodDelegation
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
index f551c65cb2..c80a69e554 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