2DArray 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/2DArray.rb +4 -0
  2. metadata +2 -2
@@ -36,4 +36,8 @@ class Array2D
36
36
  def include?(thing)
37
37
  @stuff.flatten(1).include?(thing)
38
38
  end
39
+
40
+ def size
41
+ @stuff.flatten(1).size
42
+ end
39
43
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: 2DArray
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - J. Wostenberg
@@ -25,7 +25,7 @@ extra_rdoc_files: []
25
25
  files:
26
26
  - lib/2DArray.rb
27
27
  has_rdoc: true
28
- homepage:
28
+ homepage: http://github.com/awostenberg/2DArray
29
29
  licenses: []
30
30
 
31
31
  post_install_message: