From 0c26e3fc0e2d689164bbc1470a64fa0f511f641c Mon Sep 17 00:00:00 2001 From: Takahiro SATOH Date: Fri, 26 Dec 2025 22:15:22 +0900 Subject: [PATCH] Avoid conflict with Ruby's numbered parameters Signed-off-by: Takahiro SATOH --- lib/iruby/backend.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iruby/backend.rb b/lib/iruby/backend.rb index 523f5e4..e0bc820 100644 --- a/lib/iruby/backend.rb +++ b/lib/iruby/backend.rb @@ -18,7 +18,7 @@ def eval(code, store_history) # TODO Add IRuby.cache_size which controls the size of the Out array # and sets the oldest entries and _ variables to nil. if store_history - b.local_variable_set("_#{Out.size}", out) + b.local_variable_set("_o#{Out.size}", out) b.local_variable_set("_i#{In.size}", code) Out << out