Method: Down::Wget#initialize
- Defined in:
- lib/down/wget.rb
#initialize(*arguments) ⇒ Wget
Initializes the backend with common defaults.
20 21 22 23 24 25 26 27 28 |
# File 'lib/down/wget.rb', line 20 def initialize(*arguments) @arguments = [ user_agent: "Down/#{Down::VERSION}", max_redirect: 2, dns_timeout: 30, connect_timeout: 30, read_timeout: 30, ] + arguments end |