clear « Hash « Ruby






1.clear method removes all the key-value pairs from a hash, leaving it empty
2.clear a hash