Class: GlossyApp::Util
- Inherits:
-
Object
- Object
- GlossyApp::Util
- Defined in:
- lib/glossyapp/util.rb
Class Method Summary collapse
Class Method Details
.download_file(url, download_path) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/glossyapp/util.rb', line 5 def self.download_file(url, download_path) File.open(download_path, "wb") do |saved_file| open(url) do |read_file| saved_file.write(read_file.read) end end end |