hsh.value?(value) â true or false
Instance Public methods
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
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
Please login to continue.