Sha256: d905bb89690bb73534fd6ac82944b9853066ff18717e7f0d8ddfc1f4b981ae7a
Contents?: true
Size: 283 Bytes
Versions: 6
Compression:
Stored size: 283 Bytes
Contents
class Array alias_method :multiply, :* def *(rhs=nil) if rhs multiply(rhs) else Enumerable::MultiSender.new(self, :map) end end def drop_while! drop = 0 drop += 1 while yield(self[drop]) self[0..drop-1] = [] self end end
Version data entries
6 entries across 6 versions & 2 rubygems