has_value?

has_value?

ri

 -------------------------------------------------------- Hash#has_value?
      hsh.has_value?(value)    => true or false
      hsh.value?(value)        => true or 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
 

  • 2006/05/12 19:57:06 DBM
  • 2006/05/12 19:58:49 ENV
  • 2006/05/12 20:03:06 GDBM
  • 2006/05/12 20:03:30 Hash
  • 2006/05/15 12:30:18 has_value?
  • 2006/05/15 13:11:32 value?