module ArrayZipper
Constants
- VERSION
Public Class Methods
zipper(string1, string2)
click to toggle source
# 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