Project

General

Profile

Actions

Feature #19137

open

Numbered parameters are not made available to IRB.

Added by 0x1eef (0x 1eef) about 2 years ago. Updated about 2 years ago.

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

Description

Hello !

It does not look like numbered parameters are available through the Binding that's used by IRB.

# repl.rb
[1,2,3].each do 
  binding.irb
end
$ irb repl.rb                   
irb(main):001:0> puts _1
repl.rb:1:in `block in <top (required)>': undefined local variable or method `_1' for main:Object (NameError)

Is it possible for them to be available ? Thanks!


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #18837: Not possible to evaluate expression with numbered parameters in itRejectedActions
Actions

Also available in: Atom PDF

Like0
Like0