method

clear

v2_2_9 - 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                          #=> {}