Is this the most efficent way to forward the 'each' call to the Hash's native each method.
Should I make @index visible to the outside?
I'm a bit unsure as a block is invovled.
class TimeSlice
def initialize(list)
# @index is a hash
@index = list.do_some_magic()
end
def each(&block)
@index.each(&block)
end
end