Exception: Hooks::ForceReturn

Inherits:
StandardError
  • Object
show all
Defined in:
docs/000_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



114
115
116
# File 'docs/000_a_root.rb', line 114

def data
  @data
end

#hook_name

Name of the hook that forced the return



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

def hook_name
  @hook_name
end

#reason

Reason that has forced the return



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

def reason
  @reason
end