class Array
Public Instance Methods
pair(array)
click to toggle source
# File library/source/extensions.rb, line 4 def pair array Hash.new.tap do |result| array.each_index do |index| result.store self[index], array[index] end end end