Method: List#each

Defined in:
lib/nutrientes/list.rb

#eachObject

Defines the each method to make use of the Enumerable module



43
44
45
46
47
48
49
# File 'lib/nutrientes/list.rb', line 43

def each
    actual = @head
    while actual != nil do
        yield actual
        actual = actual.nodo[:next_]
    end
end