Class: Bricolage::GenericTask
- Inherits:
-
DataSourceTask
- Object
- DataSourceTask
- Bricolage::GenericTask
- Defined in:
- lib/bricolage/genericdatasource.rb
Defined Under Namespace
Classes: AnyAction
Instance Attribute Summary
Attributes inherited from DataSourceTask
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
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 |