struct Redis::Commands::EmptyEnumerable

Overview

This type exists to avoid allocation of an array on the heap.

Included Modules

Defined in:

commands.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def each(&block : String -> ) #
Description copied from module Enumerable(String)

Must yield this collection's elements to the block.


[View source]
def initialize #

[View source]
def size #
Description copied from module Enumerable(String)

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4

[View source]