Sha256: 03034115f763ec6d7ecda6b5f2d2e20b934c171eb23772bdc07e74e77ee0460b
Contents?: true
Size: 237 Bytes
Versions: 12
Compression:
Stored size: 237 Bytes
Contents
class ListEnumerator < Enumerator def initialize(base,&block) @base = base super(&block) end def count @base.count end def member?(obj) case obj when String @base.member?(obj) else super(obj) end end end
Version data entries
12 entries across 12 versions & 1 rubygems