summaryrefslogtreecommitdiff
path: root/lib/delegate.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-20 04:18:25 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-20 04:18:25 +0000
commit803591e9003482258de5fa695257b0bcd1685710 (patch)
tree3046636322e5aa0c69f23dd906d0573e9a38a1dc /lib/delegate.rb
parent2ec2878d559391d22d593691971fc3e0d4f8935d (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@10971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/delegate.rb')
-rw-r--r--lib/delegate.rb6
1 files changed, 3 insertions, 3 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