Use Hash#clear rather than creating a new one.

This commit is contained in:
Akinori MUSHA 2013-03-08 21:10:25 +09:00
parent 5f21b364d3
commit f79387080b

View file

@ -144,7 +144,7 @@ class HTTP::CookieJar
# Clear the cookie jar and return self.
def clear
@jar = {}
@jar.clear
self
end