Flowdock
method

to_h

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Array
to_h() public

Returns the result of interpreting ary as an array of [key, value] pairs.

[[:foo, :bar], [1, 2]].to_h
  # => {:foo => :bar, 1 => 2}
Show source
Register or log in to add new notes.