0
0
Fork 0

Make Storage:dateset_length able to handle non multidimensional arrays

This commit is contained in:
Stormwind 2015-05-01 08:07:40 +02:00
parent c341f10ca9
commit b9ecfcf3af
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ module Rubella
#
def dataset_length
return 0 if self.length == 0
return 1 unless @data[0].respond_to? "length"
@data[0].length
end