Commit af36a40
committed
Update for Ruby >= 3 compatibility
Proc.new without a block used to capture a block passed to a method. This was removed in Ruby 3.
Previously it was a faster way to wrap a block and call it than the &block argument. `yield` is still the quickest way to invoke a passed block and `fetch` requires a block so we can safely call yield w/o checking1 parent 339ed0d commit af36a40
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments