Method: Overcommit::HookContext::Base#hook_type_name

Defined in:
lib/overcommit/hook_context/base.rb

#hook_type_nameString

Returns the snake-cased type of this hook (e.g. pre_commit)

Returns:

  • (String)


46
47
48
# File 'lib/overcommit/hook_context/base.rb', line 46

def hook_type_name
  Overcommit::Utils.snake_case(hook_class_name)
end