Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/idata/detector.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



8
9
10
11
12
13
14
# File 'lib/idata/detector.rb', line 8

def to_h
  h = {}
  self.each do |e|
    h[e.first] = e.last
  end
  return h
end