summaryrefslogtreecommitdiff
path: root/lib/pp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pp.rb')
-rw-r--r--lib/pp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index ce282bee00..72480e5304 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -237,7 +237,7 @@ class PP < PrettyPrint
else
sep.call
end
- yield(*v, **{})
+ RUBY_VERSION >= "3.0" ? yield(*v, **{}) : yield(*v)
}
end