Class: DataTypeHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/salary_croatia/data_type_helper.rb

Class Method Summary collapse

Class Method Details

.merge_arrays_into_hash(array1, array2) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/salary_croatia/data_type_helper.rb', line 3

def self.merge_arrays_into_hash(array1, array2)
	hash = {}
	array1.each_with_index do |key, index|
		hash[key] = array2[index]
	end
	return hash
end