10000 Update refinements docs · github/ruby@d95b13e · GitHub
[go: up one dir, main page]

Skip to content

Commit d95b13e

Browse files
committed
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
1 parent dd67af4 commit d95b13e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/syntax/refinements.rdoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,9 @@ Note that +super+ in a method of a refinement invokes the method in the
247247
refined class even if there is another refinement which has been activated in
248248
the same context.
249249

250-
== Indirect Method Calls
250+
== Methods Introspection
251251

252-
When using indirect method access such as Kernel#send, Kernel#method or
253-
Kernel#respond_to? refinements are not honored for the caller context during
254-
method lookup.
252+
When using introspection methods such as Kernel#method or Kernel#methods refinements are not honored.
255253

256254
This behavior may be changed in the future.
257255

0 commit comments

Comments
 (0)
0