lib/cards_lib/refinements.rb in cards_lib-0.2.4 vs lib/cards_lib/refinements.rb in cards_lib-0.2.5
- old
+ new
@@ -1,9 +1,9 @@
module CardsLib::Refinements
module InjectWhile
refine Array do
def inject_while?(m)
- result, *array = self.dup
+ result, *array = dup
loop do
break if array.empty?
other = array.shift
result = result.send(m, other)