Class: QuoraNotify::CookieReaders::SafariCookieReader
- Inherits:
-
CookieReader
- Object
- CookieReader
- QuoraNotify::CookieReaders::SafariCookieReader
- Defined in:
- lib/quora_notify/cookie_readers/safari_cookie_reader.rb
Constant Summary collapse
- DEFAULT_COOKIE_PATH =
"#{ENV['HOME']}/Library/Cookies/Cookies.binarycookies"
Instance Method Summary collapse
-
#read_cookies ⇒ Object
Returns an array of Cookie objects Raises: CookieReaderException.
Methods inherited from CookieReader
#cookie_file_path, #initialize
Constructor Details
This class inherits a constructor from QuoraNotify::CookieReaders::CookieReader
Instance Method Details
#read_cookies ⇒ Object
Returns an array of Cookie objects Raises: CookieReaderException
7 8 9 10 11 12 13 14 15 |
# File 'lib/quora_notify/cookie_readers/safari_cookie_reader.rb', line 7 def raise QuoraNotify::Exceptions::CookieReaderException, 'No cookie file found' unless File.exists?() = [] File.open(, 'rb') do || = process_file end end |