Class: HookR::NullHook
- Inherits:
-
Object
- Object
- HookR::NullHook
- Defined in:
- lib/hookr.rb
Overview
A null object class for terminating Hook inheritance chains
Instance Method Summary collapse
- #each_callback(&block) ⇒ Object
- #each_callback_reverse(&block) ⇒ Object
- #execute_callbacks(event) ⇒ Object
- #root? ⇒ Boolean
- #terminal? ⇒ Boolean
- #total_callbacks ⇒ Object
Instance Method Details
#each_callback(&block) ⇒ Object
454 455 456 |
# File 'lib/hookr.rb', line 454 def each_callback(&block) # NOOP end |
#each_callback_reverse(&block) ⇒ Object
458 459 460 |
# File 'lib/hookr.rb', line 458 def each_callback_reverse(&block) # NOOP end |
#execute_callbacks(event) ⇒ Object
462 463 464 |
# File 'lib/hookr.rb', line 462 def execute_callbacks(event) # NOOP end |
#root? ⇒ Boolean
474 475 476 |
# File 'lib/hookr.rb', line 474 def root? true end |
#terminal? ⇒ Boolean
470 471 472 |
# File 'lib/hookr.rb', line 470 def terminal? true end |
#total_callbacks ⇒ Object
466 467 468 |
# File 'lib/hookr.rb', line 466 def total_callbacks 0 end |