class Rake::LinkedList

def each

For each item in the list.
def each
  current = self
  while !current.empty?
    yield(current.head)
    current = current.tail
  end
  self
end