Sha256: 408ed1e71abf492535fab7e56466e0d99f37440f8d7e8b79396cb5ed4d94f0ed
Contents?: true
Size: 266 Bytes
Versions: 1
Compression:
Stored size: 266 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 Bukkit::Help.download abort "Error! No internet connection." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bukkit-0.1.4 | lib/bukkit/download.rb |