1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/pp] Support < Ruby 3.0

https://github.com/ruby/pp/commit/3ee131ae92
This commit is contained in:
Hiroshi SHIBATA 2020-12-28 13:37:11 +09:00
parent 2229fc8b57
commit 17441a6b1b

View file

@ -237,7 +237,7 @@ class PP < PrettyPrint
else
sep.call
end
yield(*v, **{})
RUBY_VERSION >= "3.0" ? yield(*v, **{}) : yield(*v)
}
end