Module: Arstotzka::Base Private
- Included in:
- Crawler, Fetcher, Fetcher::Cache, HashReader, KeyChanger, KeyReader, PostProcessor, Reader, Wrapper
- Defined in:
- lib/arstotzka/base.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Common code to be used by classes
Instance Method Summary collapse
-
#options=(options) ⇒ Arstotzka::Options
private
private
Sets the @options object.
Instance Method Details
#options=(options_hash = {}) ⇒ Arstotzka::Options (private) #options=(options) ⇒ Arstotzka::Options (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Sets the @options object
19 20 21 22 23 24 25 |
# File 'lib/arstotzka/base.rb', line 19 def () @options = if .is_a?(Hash) Arstotzka.config.() else end end |