зеркало из https://github.com/github/ruby.git
Add class ref to `UnboundMethod#owner` doc
It refers to `Method#receiver` in the doc, but there's no class reference in current doc. Some tools automatically make it a link so it's useful. Closes: https://github.com/ruby/ruby/pull/2156
This commit is contained in:
Родитель
ecf660e438
Коммит
7fe04850d2
2
proc.c
2
proc.c
|
@ -1647,7 +1647,7 @@ method_original_name(VALUE obj)
|
|||
* meth.owner -> class_or_module
|
||||
*
|
||||
* Returns the class or module that defines the method.
|
||||
* See also receiver.
|
||||
* See also Method#receiver.
|
||||
*
|
||||
* (1..3).method(:map).owner #=> Enumerable
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче