2DArray 0.1.2 → 0.1.3

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 +1 -1
  2. metadata +1 -1
@@ -1,6 +1,6 @@
1
1
  class Array2D
2
2
  def initialize(rows, cols, default=nil)
3
- @stuff = Array.new(rows, []) {Array.new(cols, nil)}
3
+ @stuff = Array.new(rows, []) {Array.new(cols, default)}
4
4
  end
5
5
 
6
6
  # Redefined Object#method_missing as to forward the undefined
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: 2DArray
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - J. Wostenberg