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.
9 10 11 12 13 |
# File 'lib/overcommit/hook_loader/base.rb', line 9 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.
19 20 21 |
# File 'lib/overcommit/hook_loader/base.rb', line 19 def load_hooks raise NotImplementedError end |