method

to_h

Importance_1
v2_1_10 - 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.