Module: DevSuite::Utils::Construct::Config::Hook::Manager::ClassMethods
- Defined in:
- lib/dev_suite/utils/construct/config/hook/manager.rb
Instance Method Summary collapse
Instance Method Details
#hooks ⇒ Object
21 22 23 |
# File 'lib/dev_suite/utils/construct/config/hook/manager.rb', line 21 def hooks @hooks ||= {} end |
#register_hook(stage, &block) ⇒ Object
16 17 18 19 |
# File 'lib/dev_suite/utils/construct/config/hook/manager.rb', line 16 def register_hook(stage, &block) hooks[stage] ||= [] hooks[stage] << block end |