lib/refinements/arrays.rb in refinements-8.5.2 vs lib/refinements/arrays.rb in refinements-9.0.0
- old
+ new
@@ -25,9 +25,9 @@
def minimum(key) = map(&key).min
def pad(value, max: size) = dup.fill(value, size..(max - 1))
- def ring(&block) = [last, *self, first].each_cons(3, &block)
+ def ring(&) = [last, *self, first].each_cons(3, &)
end
end
end