hsh.clear â hsh
Instance Public methods
Removes all key-value pairs from hsh.
1 2 | h = { "a" => 100 , "b" => 200 } #=> {"a"=>100, "b"=>200} h.clear #=> {} |
Removes all key-value pairs from hsh.
1 2 | h = { "a" => 100 , "b" => 200 } #=> {"a"=>100, "b"=>200} h.clear #=> {} |
Designed by : w10schools
service@w10schools.com
Please login to continue.