struct Redis::Commands::EmptyEnumerable
- Redis::Commands::EmptyEnumerable
- Struct
- Value
- Object
Overview
This type exists to avoid allocation of an array on the heap.
Included Modules
- Enumerable(String)
Defined in:
commands.crConstructors
Instance Method Summary
-
#each(&block : String -> )
Must yield this collection's elements to the block.
- #initialize
-
#size
Returns the number of elements in the collection.
Constructor Detail
Instance Method Detail
def each(&block : String -> )
#
Description copied from module Enumerable(String)
Must yield this collection's elements to the block.
def size
#
Description copied from module Enumerable(String)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4