Module: TLSmap::Utils
- Defined in:
- lib/tls_map/utils/utils.rb
Overview
Generic utilities
Class Method Summary collapse
Class Method Details
.tmpfile(name, url) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/tls_map/utils/utils.rb', line 12 def self.tmpfile(name, url) tmp = Tempfile.new(name) tmp.write(Net::HTTP.get(URI(url))) tmp.close tmp end |