Class: Bricolage::GenericTask

Inherits:
DataSourceTask show all
Defined in:
lib/bricolage/genericdatasource.rb

Defined Under Namespace

Classes: AnyAction

Instance Attribute Summary

Attributes inherited from DataSourceTask

#ds

Instance Method Summary collapse

Methods inherited from DataSourceTask

#bind, #initialize, #run, #source

Constructor Details

This class inherits a constructor from Bricolage::DataSourceTask

Instance Method Details

#action(label = nil, &block) ⇒ Object

Raises:



17
18
19
20
# File 'lib/bricolage/genericdatasource.rb', line 17

def action(label = nil, &block)
  raise FatalError, "no block" unless block
  add AnyAction.new(label, block)
end