[ruby-core:80336] [Ruby trunk Bug#13273] [DOC] Proc#call docs show "Document-method: []" directive

From: usa@...
Date: 2017-03-25 17:08:09 UTC
List: ruby-core #80336
Issue #13273 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE to 2.2: DONE, 2.3: REQUIRED, 2.4: DONE

ruby_2_2 r58105 merged revision(s) 57765.

----------------------------------------
Bug #13273: [DOC] Proc#call docs show "Document-method: []" directive
https://bugs.ruby-lang.org/issues/13273#change-63814

* Author: stomar (Marcus Stollsteimer)
* Status: Closed
* Priority: Normal
* Assignee: stomar (Marcus Stollsteimer)
* Target version: 
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: DONE, 2.3: REQUIRED, 2.4: DONE
----------------------------------------
The documentation for Proc#call displays one of its Document-method directives as a code block:

```
$ ri Proc.call

------------------------------------------------------------------------------
  prc.call(params,...)   -> obj
------------------------------------------------------------------------------

  Document-method: []

Invokes the block, ...
```

See also https://docs.ruby-lang.org/en/2.3.0/Proc.html#method-i-call.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next