Make Storage:dateset_length able to handle non multidimensional arrays
This commit is contained in:
parent
c341f10ca9
commit
b9ecfcf3af
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue