value?

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
doc_ruby_on_rails
2015-04-12 01:13:37
Comments
Leave a Comment

Please login to continue.