Class: Kar::URITask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Kar::URITask
- Includes:
- Util
- Defined in:
- lib/kar/uritask.rb
Overview
Instanctiated in DSL#download
Defined Under Namespace
Modules: Util
Instance Method Summary collapse
-
#initialize(file_and_uri) ⇒ URITask
constructor
A new instance of URITask.
Methods included from Util
Constructor Details
#initialize(file_and_uri) ⇒ URITask
Returns a new instance of URITask.
46 47 48 49 50 |
# File 'lib/kar/uritask.rb', line 46 def initialize(file_and_uri) @to = file_and_uri.keys.first @uri = URI(file_and_uri.values.first) define end |