mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update refinements docs
Co-Authored-By: Vladimir Dementyev <dementiev.vm@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dd67af4892
commit
d95b13ead1
1 changed files with 2 additions and 4 deletions
|
@ -247,11 +247,9 @@ Note that +super+ in a method of a refinement invokes the method in the
|
||||||
refined class even if there is another refinement which has been activated in
|
refined class even if there is another refinement which has been activated in
|
||||||
the same context.
|
the same context.
|
||||||
|
|
||||||
== Indirect Method Calls
|
== Methods Introspection
|
||||||
|
|
||||||
When using indirect method access such as Kernel#send, Kernel#method or
|
When using introspection methods such as Kernel#method or Kernel#methods refinements are not honored.
|
||||||
Kernel#respond_to? refinements are not honored for the caller context during
|
|
||||||
method lookup.
|
|
||||||
|
|
||||||
This behavior may be changed in the future.
|
This behavior may be changed in the future.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue