Top Level Namespace

Defined Under Namespace

Modules: ConnectionPersistence, Rake Classes: Array

Instance Method Summary collapse

Instance Method Details

#data(*args, &block) ⇒ Object



71
72
73
74
75
76
# File 'lib/data_task.rb', line 71

def data(*args, &block)
  # The task name in *args here is a Data returned by the adapter. Rake will key this task by 
  # Data.to_s in @tasks [Array]. All task recording and lookup in Rake is already done via to_s 
  # already to accomdate tasks named by symbols.
  Rake::DataTask::DataTask.define_task(*args, &block)
end