Skip to content

Commit

Permalink
Support < Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Dec 28, 2020
1 parent 52ea07a commit 3ee131a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def seplist(list, sep=nil, iter_method=:each) # :yield: element
else
sep.call
end
yield(*v, **{})
RUBY_VERSION >= "3.0" ? yield(*v, **{}) : yield(*v)
}
end

Expand Down

0 comments on commit 3ee131a

Please sign in to comment.