Method: Overcommit::HookContext::Base#hook_type_name
- Defined in:
- lib/overcommit/hook_context/base.rb
#hook_type_name ⇒ String
Returns the snake-cased type of this hook (e.g. pre_commit)
46 47 48 |
# File 'lib/overcommit/hook_context/base.rb', line 46 def hook_type_name Overcommit::Utils.snake_case(hook_class_name) end |