Project

General

Profile

Actions

Bug #17094

closed

PTY methods with blocks

Added by soutaro (Soutaro Matsumoto) over 4 years ago. Updated about 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-dev:50941]

Description

Some methods on PTY yield one array if a block is given, but the RDoc says it passes two arguments to the block.

https://github.com/ruby/ruby/blob/master/ext/pty/pty.c#L529

return rb_ensure(rb_yield, assoc, pty_close_pty, assoc);

https://github.com/ruby/ruby/blob/master/ext/pty/pty.c#L467

 *   PTY.open {|master_io, slave_file| ... } => block value

I'd like to propose to fix the implementation. However, it would make more sense to fix the docs because of potential incompatibilities.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0