Class: ProxyFetcher::Exceptions::BlankAdapter
- Inherits:
-
ProxyFetcher::Error
- Object
- ProxyFetcher::Exceptions::BlankAdapter
- Defined in:
- lib/proxy_fetcher/exceptions.rb
Overview
Exception for cases when user tries to set nil
HTML parser adapter in the configuration (or just forget to change it).
Instance Method Summary collapse
-
#initialize ⇒ BlankAdapter
constructor
Initialize new exception.
Constructor Details
#initialize ⇒ BlankAdapter
Initialize new exception
94 95 96 97 98 99 100 |
# File 'lib/proxy_fetcher/exceptions.rb', line 94 def initialize(*) super(<<-MSG.strip.squeeze you need to specify adapter for HTML parsing: ProxyFetcher.config.adapter = :nokogiri. You can use one of the predefined adapters (:nokogiri or :oga) or your own implementation. MSG ) end |