Exception: Hooks::ForceReturn
- Defined in:
- scripts/00010 Hooks.rb
Overview
Exception that help managing overwritten return from Hooks
Constant Summary collapse
- CONST =
Constant value for hooks functionality
new('Return forced')
Instance Attribute Summary collapse
-
#data
Data that should be returned.
-
#hook_name
Name of the hook that forced the return.
-
#reason
Reason that has forced the return.
Instance Attribute Details
#data
Data that should be returned
25 26 27 |
# File 'scripts/00010 Hooks.rb', line 25 def data @data end |
#hook_name
Name of the hook that forced the return
29 30 31 |
# File 'scripts/00010 Hooks.rb', line 29 def hook_name @hook_name end |
#reason
Reason that has forced the return
27 28 29 |
# File 'scripts/00010 Hooks.rb', line 27 def reason @reason end |