P
Philipp Huber
hello!
first of all, i'm new to ruby and this list.
my question is, i have a class "Queue" which implements a queue as
linked list of "Item" objects. i'd like to implement an each method,
so i can do something like
queue.each do |item|
item.do_somethng
end
any help would be appreciated!
thanks,
philipp
first of all, i'm new to ruby and this list.
my question is, i have a class "Queue" which implements a queue as
linked list of "Item" objects. i'd like to implement an each method,
so i can do something like
queue.each do |item|
item.do_somethng
end
any help would be appreciated!
thanks,
philipp