I\'ve got a list of values that are in a Ruby hash. Is there a way to check the value of the key and if it equals \"X\", then do \"Y\"?
I can test to see if the hash ha
How about this?
puts "ok" if hash_variable["key"] == "X"
You can access hash values with the [] operator