Examveda

Which method is used to convert a hash into an array of key-value pairs in Ruby?

A. flatten

B. values

C. keys

D. to_a

Answer: Option D


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby