From 12e012ed5d9ea6be4e9729cd3fbd05081f71afea Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 10 Dec 2007 05:34:50 +0000 Subject: * eval.c (rb_f_public_send): rename invoke_method to public_send. it now invokes public method only no matter how it's called. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/delegate.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/delegate.rb b/lib/delegate.rb index 809faa32c..8501ed106 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -115,7 +115,7 @@ # implementation, see SimpleDelegator. # class Delegator - preserved = [:__id__, :object_id, :__send__, :invoke_method, :respond_to?, :send] + preserved = [:__id__, :object_id, :__send__, :public_send, :respond_to?, :send] instance_methods.each do |m| next if preserved.include?(m) undef_method m @@ -262,7 +262,7 @@ def DelegateClass(superclass) klass = Class.new methods = superclass.public_instance_methods(true) methods -= [ - :__id__, :object_id, :__send__, :invoke_method, :respond_to?, :send, + :__id__, :object_id, :__send__, :public_send, :respond_to?, :send, :==, :equal?, :initialize, :method_missing, :__getobj__, :__setobj__, :clone, :dup, :marshal_dump, :marshal_load, ] -- cgit