Method: CookieJar::Jar#to_a
- Defined in:
- lib/cookiejar/jar.rb
#to_a ⇒ Array<Cookie>
Return an array of all cookie objects in the jar
which have not yet been removed with expire_cookies
136 137 138 139 140 141 142 143 144 |
# File 'lib/cookiejar/jar.rb', line 136 def to_a result = [] @domains.values.each do |paths| paths.values.each do || .values.inject result, :<< end end result end |