Sha256: a8d9896406075af7a3b6ca60da3eacd028808b17f6418285c686157aadf624ec
Contents?: true
Size: 295 Bytes
Versions: 14
Compression:
Stored size: 295 Bytes
Contents
module Enumerable class EveryProxy < BasicObject def initialize enumerable @enumerable = enumerable end protected def method_missing m, *a, &b @enumerable.each{|o| o.send m, *a, &b} self end end def every EveryProxy.new(self) end end
Version data entries
14 entries across 14 versions & 1 rubygems