0
0
Fork 0

Make storage respond to each

This commit is contained in:
Stormwind 2015-04-26 07:16:05 +02:00
parent 87f2943fba
commit 3aa7d60d77
1 changed files with 8 additions and 0 deletions

View File

@ -76,6 +76,14 @@ module Rubella
Storage.new (storage.data+@data), @length
end
# Passes each dataset trought the given block.
#
# @param pointer to block
#
def each &block
@data.each &block
end
end
end