Module: Tinypass::CookieParser
- Extended by:
- CookieParser
- Included in:
- CookieParser
- Defined in:
- lib/tinypass/builder/cookie_parser.rb
Constant Summary collapse
- COOKIE_PARSER =
/[^=\s]+=[^=;]*/
Instance Method Summary collapse
Instance Method Details
#extract_cookie_value(key, cookies_string) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/tinypass/builder/cookie_parser.rb', line 7 def (key, ) return if .empty? keys_found = false .scan(COOKIE_PARSER).each do || , = .split('=') keys_found = true return if == key end return if keys_found end |