RubyGems
npm
Organizations
Log in
Sign up
RubyGems
monkey-patch
Versions diffs
0.0.7 → 0.0.8
monkey-patch 0.0.7 → 0.0.8
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/monkey-patch/array.rb
+8
-0
metadata
+1
-1
data/lib/monkey-patch/array.rb
CHANGED
Viewed
@@ -41,4 +41,12 @@ class Array
41
41
end
42
42
return self
43
43
end
44
+
45
+
def pad_nil(depth)
46
+
self.clone.pad_nil! depth
47
+
end
48
+
49
+
def wide_zip(other)
50
+
pad_nil(other.length).zip other
51
+
end
44
52
end
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: monkey-patch
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.0.
7
4
+
version: 0.0.
8
5
5
prerelease:
6
6
platform: ruby
7
7
authors: