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

Version Path
redis_object-1.5.3 lib/redis_object/ext/list_enumerator.rb
redis_object-1.5.1 lib/redis_object/ext/list_enumerator.rb
redis_object-1.5.0 lib/redis_object/ext/list_enumerator.rb
redis_object-1.4.9 lib/redis_object/ext/list_enumerator.rb
redis_object-1.4.8 lib/redis_object/ext/list_enumerator.rb
redis_object-1.4.7 lib/redis_object/ext/list_enumerator.rb
redis_object-1.4.6 lib/redis_object/ext/list_enumerator.rb
redis_object-1.4.5 lib/redis_object/ext/list_enumerator.rb
redis_object-1.4.3 lib/redis_object/ext/list_enumerator.rb
redis_object-1.4.2 lib/redis_object/ext/list_enumerator.rb
redis_object-1.4.1 lib/redis_object/ext/list_enumerator.rb
redis_object-1.4.0 lib/redis_object/ext/list_enumerator.rb