Module: ArrayZipper

Defined in:
lib/array_zipper.rb,
lib/array_zipper/version.rb

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.zipper(string1, string2) ⇒ Object



5
6
7
8
9
# File 'lib/array_zipper.rb', line 5

def self.zipper string1, string2
	arr1 = string1 == nil ? [] : string1.split(',') 
	arr2 = string2 == nil ? [] : string2.split(',') 
	arr1.zip(arr2)
end