method
value?
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
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