Class: Datacraft::Hook

Inherits:
Object
  • Object
show all
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

#validateObject



104
105
106
# File 'lib/datacraft/definition.rb', line 104

def validate
  fail InvalidHook, 'Hook has to be a block.' unless @d[:block]
end