lib/dl/dl.rb in
dl-0.0.1
vs lib/dl/dl.rb in
dl-0.0.2
- old
+ new
@@ -1,3 +1,8 @@
module Dl
+ def self.download(url)
+ session = Patron::Session.new
+ response = session.get url
+ puts response.body
+ end
end