Sha256: 171a169c29a8f7af77f8120f2d15da97e351d535ff3816facf358834861db210
Contents?: true
Size: 175 Bytes
Versions: 1
Compression:
Stored size: 175 Bytes
Contents
require 'uri' require 'open-uri' module FeCoreExt::CoreExt end module URI def download(file) File.open(file, 'wb') {|f| f.write(OpenURI.open_uri(self).read)} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fe_core_ext-0.2.1 | lib/fe_core_ext/core_ext/uri.rb |