method
to_a
to_a()
public
Converts hsh to a nested array of [ key, value ] arrays.
h = { "c" => 300, "a" => 100, "d" => 400, "c" => 300 } h.to_a #=> [["a", 100], ["c", 300], ["d", 400]]
to_a()
public
Converts hsh to a nested array of [ key, value ] arrays.
h = { "c" => 300, "a" => 100, "d" => 400, "c" => 300 } h.to_a #=> [["a", 100], ["c", 300], ["d", 400]]