Class: Kar::URITask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/kar/uritask.rb

Overview

Instanctiated in DSL#download

Instance Method Summary collapse

Constructor Details

#initialize(file_and_uri) ⇒ URITask

Returns a new instance of URITask.



9
10
11
12
13
# File 'lib/kar/uritask.rb', line 9

def initialize(file_and_uri)
  @to = file_and_uri.keys.first
  @uri = URI(file_and_uri.values.first)
  define
end