class Array
Public Instance Methods
to_h()
click to toggle source
# File lib/idata/detector.rb, line 8 def to_h h = {} self.each do |e| h[e.first] = e.last end return h end
# File lib/idata/detector.rb, line 8 def to_h h = {} self.each do |e| h[e.first] = e.last end return h end