Class: Datacraft::Hook
- Inherits:
-
Object
- Object
- Datacraft::Hook
- Includes:
- Definition
- Defined in:
- lib/datacraft/definition.rb
Overview
pre/post build hooks
Instance Method Summary collapse
Methods included from Definition
included, #initialize, #instance
Instance Method Details
#validate ⇒ Object
104 105 106 |
# File 'lib/datacraft/definition.rb', line 104 def validate fail InvalidHook, 'Hook has to be a block.' unless @d[:block] end |