Project

General

Profile

Actions

Feature #13333

open

block to yield

Added by nobu (Nobuyoshi Nakada) about 7 years ago. Updated almost 7 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:80246]

Description

Currently, blocks can take a block by do |&block| end construct.
But the only way to pass a block or a bloc argument is making a Proc and calling Proc#call with a blockarg.
I think yield should take a block or a block argument now.

https://github.com/ruby/ruby/compare/trunk...nobu:feature/yield-blockarg

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0