Project

General

Profile

Bug #13273

[DOC] Proc#call docs show "Document-method: []" directive

Added by stomar (Marcus Stollsteimer) almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
[ruby-core:79887]

Description

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.


Related issues

Related to Ruby master - Bug #13275: RDoc bug for "Document-method: []"ClosedActions

Associated revisions

Revision bf5b0c49
Added by stomar (Marcus Stollsteimer) almost 3 years ago

proc.c: documentation for Proc#{call,yield,[]}

  • proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

    • change order of Document-method directives as workaround for an RDoc rendering problem where the documentation for Proc#call displays a "Document-method: []" code block. [ruby-core:79887] [Bug #13273]
    • add missing call-seq and example for Proc#yield
    • remove pointless cross reference to Proc#yield
    • update description for handling of extra or missing arguments, improve examples and add cross reference to #lambda?

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 57765
Added by stomar (Marcus Stollsteimer) almost 3 years ago

proc.c: documentation for Proc#{call,yield,[]}

  • proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

    • change order of Document-method directives as workaround for an RDoc rendering problem where the documentation for Proc#call displays a "Document-method: []" code block. [ruby-core:79887] [Bug #13273]
    • add missing call-seq and example for Proc#yield
    • remove pointless cross reference to Proc#yield
    • update description for handling of extra or missing arguments, improve examples and add cross reference to #lambda?

Revision 57765
Added by stomar (Marcus Stollsteimer) almost 3 years ago

proc.c: documentation for Proc#{call,yield,[]}

  • proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

    • change order of Document-method directives as workaround for an RDoc rendering problem where the documentation for Proc#call displays a "Document-method: []" code block. [ruby-core:79887] [Bug #13273]
    • add missing call-seq and example for Proc#yield
    • remove pointless cross reference to Proc#yield
    • update description for handling of extra or missing arguments, improve examples and add cross reference to #lambda?

Revision 57765
Added by stomar (Marcus Stollsteimer) almost 3 years ago

proc.c: documentation for Proc#{call,yield,[]}

  • proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

    • change order of Document-method directives as workaround for an RDoc rendering problem where the documentation for Proc#call displays a "Document-method: []" code block. [ruby-core:79887] [Bug #13273]
    • add missing call-seq and example for Proc#yield
    • remove pointless cross reference to Proc#yield
    • update description for handling of extra or missing arguments, improve examples and add cross reference to #lambda?

Revision 0e2a2b63
Added by naruse (Yui NARUSE) almost 3 years ago

merge revision(s) 57765: [Backport #13273]

    proc.c: documentation for Proc#{call,yield,[]}

    * proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

      * change order of Document-method directives as workaround for an
        RDoc rendering problem where the documentation for Proc#call displays
        a "Document-method: []" code block.  [ruby-core:79887] [Bug #13273]
      * add missing call-seq and example for Proc#yield
      * remove pointless cross reference to Proc#yield
      * update description for handling of extra or missing arguments,
        improve examples and add cross reference to #lambda?

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@57923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 57923
Added by naruse (Yui NARUSE) almost 3 years ago

merge revision(s) 57765: [Backport #13273]

proc.c: documentation for Proc#{call,yield,[]}

* proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

  * change order of Document-method directives as workaround for an
    RDoc rendering problem where the documentation for Proc#call displays
    a "Document-method: []" code block.  [ruby-core:79887] [Bug #13273]
  * add missing call-seq and example for Proc#yield
  * remove pointless cross reference to Proc#yield
  * update description for handling of extra or missing arguments,
    improve examples and add cross reference to #lambda?

Revision 8ab5fe41
Added by usa (Usaku NAKAMURA) over 2 years ago

merge revision(s) 57765: [Backport #13273]

    proc.c: documentation for Proc#{call,yield,[]}

    * proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

      * change order of Document-method directives as workaround for an
        RDoc rendering problem where the documentation for Proc#call displays
        a "Document-method: []" code block.  [ruby-core:79887] [Bug #13273]
      * add missing call-seq and example for Proc#yield
      * remove pointless cross reference to Proc#yield
      * update description for handling of extra or missing arguments,
        improve examples and add cross reference to #lambda?

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58105
Added by usa (Usaku NAKAMURA) over 2 years ago

merge revision(s) 57765: [Backport #13273]

proc.c: documentation for Proc#{call,yield,[]}

* proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

  * change order of Document-method directives as workaround for an
    RDoc rendering problem where the documentation for Proc#call displays
    a "Document-method: []" code block.  [ruby-core:79887] [Bug #13273]
  * add missing call-seq and example for Proc#yield
  * remove pointless cross reference to Proc#yield
  * update description for handling of extra or missing arguments,
    improve examples and add cross reference to #lambda?

Revision 2334147e
Added by nagachika (Tomoyuki Chikanaga) over 2 years ago

merge revision(s) 57765: [Backport #13273]

    proc.c: documentation for Proc#{call,yield,[]}

    * proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

      * change order of Document-method directives as workaround for an
        RDoc rendering problem where the documentation for Proc#call displays
        a "Document-method: []" code block.  [ruby-core:79887] [Bug #13273]
      * add missing call-seq and example for Proc#yield
      * remove pointless cross reference to Proc#yield
      * update description for handling of extra or missing arguments,
        improve examples and add cross reference to #lambda?

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58185
Added by nagachika (Tomoyuki Chikanaga) over 2 years ago

merge revision(s) 57765: [Backport #13273]

proc.c: documentation for Proc#{call,yield,[]}

* proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

  * change order of Document-method directives as workaround for an
    RDoc rendering problem where the documentation for Proc#call displays
    a "Document-method: []" code block.  [ruby-core:79887] [Bug #13273]
  * add missing call-seq and example for Proc#yield
  * remove pointless cross reference to Proc#yield
  * update description for handling of extra or missing arguments,
    improve examples and add cross reference to #lambda?

History

#1

Updated by stomar (Marcus Stollsteimer) almost 3 years ago

  • Status changed from Open to Closed

Applied in changeset r57765.


proc.c: documentation for Proc#{call,yield,[]}

  • proc.c: [DOC] fix and improve docs for Proc#{call,yield,[]}:

    • change order of Document-method directives as workaround for an RDoc rendering problem where the documentation for Proc#call displays a "Document-method: []" code block. [ruby-core:79887] [Bug #13273]
    • add missing call-seq and example for Proc#yield
    • remove pointless cross reference to Proc#yield
    • update description for handling of extra or missing arguments, improve examples and add cross reference to #lambda?
#2

Updated by stomar (Marcus Stollsteimer) almost 3 years ago

  • Related to Bug #13275: RDoc bug for "Document-method: []" added

Updated by naruse (Yui NARUSE) almost 3 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: DONE

ruby_2_4 r57923 merged revision(s) 57765.

#4

Updated by nagachika (Tomoyuki Chikanaga) almost 3 years ago

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

Updated by usa (Usaku NAKAMURA) over 2 years ago

  • 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.

Updated by nagachika (Tomoyuki Chikanaga) over 2 years ago

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

ruby_2_3 r58185 merged revision(s) 57765.

Also available in: Atom PDF