From a38fa97dcc9becfcf7be012c7f40020d11ae2fd1 Mon Sep 17 00:00:00 2001 From: Oskar Eichler Date: Fri, 28 Aug 2026 02:42:00 +0300 Subject: [PATCH] Read instance variables directly instead of evaluating Ruby source --- lib/pp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pp.rb b/lib/pp.rb index 798a4f4..486ba3d 100644 --- a/lib/pp.rb +++ b/lib/pp.rb @@ -292,7 +292,7 @@ def pp_object(obj) text '=' group(1) { breakable '' - pp(obj.instance_eval(v)) + pp(PP.mcall(obj, Kernel, :instance_variable_get, v)) } } }