Class: Overcommit::HookLoader::Base
- Inherits:
-
Object
- Object
- Overcommit::HookLoader::Base
- Defined in:
- lib/overcommit/hook_loader/base.rb
Overview
Responsible for loading hooks from a file.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(config, context, logger) ⇒ Base
constructor
A new instance of Base.
-
#load_hooks ⇒ Array<Hook>
When implemented in subclasses, loads the hooks for which that subclass is responsible.
Constructor Details
#initialize(config, context, logger) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 |
# File 'lib/overcommit/hook_loader/base.rb', line 7 def initialize(config, context, logger) @config = config @context = context @log = logger end |
Instance Method Details
#load_hooks ⇒ Array<Hook>
When implemented in subclasses, loads the hooks for which that subclass is responsible.
17 18 19 |
# File 'lib/overcommit/hook_loader/base.rb', line 17 def load_hooks raise NotImplementedError end |