Exception: Hooks::ForceReturn

Inherits:
StandardError
  • Object
show all
Defined in:
docs/00000_a_root.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

Instance Attribute Details

#data

Data that should be returned



116
117
118
# File 'docs/00000_a_root.rb', line 116

def data
  @data
end

#hook_name

Name of the hook that forced the return



120
121
122
# File 'docs/00000_a_root.rb', line 120

def hook_name
  @hook_name
end

#reason

Reason that has forced the return



118
119
120
# File 'docs/00000_a_root.rb', line 118

def reason
  @reason
end