Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/idata/detector.rb
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
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 |