lib/2DArray.rb in 2DArray-0.1.0 vs lib/2DArray.rb in 2DArray-0.1.2

- old
+ new

@@ -34,6 +34,10 @@ # Returns if +thing+ is an element. def include?(thing) @stuff.flatten(1).include?(thing) end + + def size + @stuff.flatten(1).size + end end \ No newline at end of file