Project

General

Profile

Actions

Feature #19137

open

Numbered parameters are not made available to IRB.

Added by 0x1eef (0x 1eef) almost 2 years ago. Updated almost 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 #1

Updated by alanwu (Alan Wu) almost 2 years ago

  • Related to Bug #18837: Not possible to evaluate expression with numbered parameters in it added
Actions

Also available in: Atom PDF

Like0
Like0