method

clear

v1_8_7_72 - Show latest stable - Class: Hash
clear()
public

Removes all key-value pairs from hsh.

   h = { "a" => 100, "b" => 200 }   #=> {"a"=>100, "b"=>200}
   h.clear                          #=> {}