module Download
Constants
- VERSION
Public Class Methods
file(*args)
click to toggle source
first argumnet is url, required second argument is path, optional third argument is open-uri options, optional
# File lib/download.rb, line 63 def file(*args) Download::Object.new( url: args.shift, path: (args[0].is_a?(String) ? args[0] : nil), options: (args.last.is_a?(Hash) ? args.last : nil) ).start end