metric_tools 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/metric_tools/table.rb +1 -1
- data/metric_tools.gemspec +1 -1
- metadata +1 -1
data/lib/metric_tools/table.rb
CHANGED
@@ -32,7 +32,7 @@ module MetricTools
|
|
32
32
|
# array = [[1, 2, 3], [4, 5, 6], [9, 0, '#']]
|
33
33
|
# Table.create_with_array(array)
|
34
34
|
def create_with_array(array)
|
35
|
-
Table.create(array
|
35
|
+
Table.create(array.length, array[0].length) {|i, j|
|
36
36
|
array[i][j]
|
37
37
|
}
|
38
38
|
end
|
data/metric_tools.gemspec
CHANGED