diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 08:15:37 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 08:15:37 +0000 |
commit | 99ab1fed49ba6b441fa5a6ae3d6818fae09b760e (patch) | |
tree | 21fffe519e07d247b641aec887e5fb17eb87e125 /lib | |
parent | ac150ad226ce961dd8b0563cb2cd52ca07beb71e (diff) | |
download | ruby-99ab1fed49ba6b441fa5a6ae3d6818fae09b760e.tar.gz |
* eval.c (rb_f_send_bang): abandon the name funcall for private
aware method call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/delegate.rb | 4 | ||||
-rw-r--r-- | lib/matrix.rb | 2 | ||||
-rw-r--r-- | lib/monitor.rb | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb index b5ebaa15da..01ed0871c6 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -115,7 +115,7 @@ # implementation, see SimpleDelegator. # class Delegator - preserved = [:__id__, :object_id, :__send__, :__send, :__send!, :respond_to?, :send, :funcall] + preserved = [:__id__, :object_id, :__send__, :__send, :__send!, :respond_to?, :send, :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__, :__send, :__send!, :respond_to?, :send, :funcall, + :__id__, :object_id, :__send__, :__send, :__send!, :respond_to?, :send, :send!, :==, :equal?, :initialize, :method_missing, :__getobj__, :__setobj__, :clone, :dup, :marshal_dump, :marshal_load, ] diff --git a/lib/matrix.rb b/lib/matrix.rb index d49e16b8fa..6c4f4f5482 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -246,7 +246,7 @@ class Matrix # use to general users. # def initialize(init_method, *argv) - self.funcall(init_method, *argv) + self.send!(init_method, *argv) end def init_rows(rows, copy) diff --git a/lib/monitor.rb b/lib/monitor.rb index 4d31dca41a..1b61f54dba 100644 --- a/lib/monitor.rb +++ b/lib/monitor.rb @@ -91,13 +91,13 @@ module MonitorMixin if timeout raise NotImplementedError, "timeout is not implemented yet" end - @monitor.funcall(:mon_check_owner) - count = @monitor.funcall(:mon_exit_for_cond) + @monitor.send!(:mon_check_owner) + count = @monitor.send!(:mon_exit_for_cond) begin @cond.wait(@monitor.instance_variable_get("@mon_mutex")) return true ensure - @monitor.funcall(:mon_enter_for_cond, count) + @monitor.send!(:mon_enter_for_cond, count) end end @@ -114,12 +114,12 @@ module MonitorMixin end def signal - @monitor.funcall(:mon_check_owner) + @monitor.send!(:mon_check_owner) @cond.signal end def broadcast - @monitor.funcall(:mon_check_owner) + @monitor.send!(:mon_check_owner) @cond.broadcast end @@ -137,7 +137,7 @@ module MonitorMixin def self.extend_object(obj) super(obj) - obj.funcall(:mon_initialize) + obj.send!(:mon_initialize) end # |