Sha256: 4aec85eba0af6471bde30349af81b4c650e8b5da528fc60dd3cc5cc616901529
Contents?: true
Size: 241 Bytes
Versions: 1
Compression:
Stored size: 241 Bytes
Contents
require 'open-uri' module Bukkit def self.download(filename, uri) begin File.open("#{filename}", "wb") do |file| file.write open("#{uri}").read end rescue Errno::ENOENT abort "Error! No internet connection." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bukkit-0.1.3 | lib/bukkit/download.rb |