method

to_h

Importance_1
v2_5_5 - Show latest stable - 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.