Q. Which of the following methods is used to check if a key exists in a hash in Ruby?
β
Correct Answer: (A)
has_key?(key)
You must be Logged in to update hint/solution