method

value?

v2_1_10 - Show latest stable - Class: Hash
value?(p1)
public

Returns true if the given value is present for some key in hsh.

h = { "a" => 100, "b" => 200 }
h.has_value?(100)   #=> true
h.has_value?(999)   #=> false