Class: NullEnumerator

Inherits:
Object show all
Includes:
Enumerable
Defined in:
lib/utilrb/enumerable/null.rb

Overview

A null enumerator which can be used to seed sequence enumeration. See Kernel#null_enum

Instance Method Summary collapse

Methods included from Enumerable

#each_uniq, #random_element

Instance Method Details

#+(other) ⇒ Object


5
# File 'lib/utilrb/enumerable/null.rb', line 5

def +(other); other end

#eachObject


4
# File 'lib/utilrb/enumerable/null.rb', line 4

def each; self end