module Cucumber::Hooks

def build_hook_step(id, location, block, hook_type, action_type)

def build_hook_step(id, location, block, hook_type, action_type)
  action = action_type.new(location, &block)
  hook = hook_type.new(action.location)
  Core::Test::HookStep.new(id, hook.text, location, action)
end