Class: Hooks::Hook::Results

Inherits:
Array
  • Object
show all
Defined in:
lib/hooks/hook.rb

Instance Method Summary collapse

Constructor Details

#initializeResults

so much code for nothing…


68
69
70
71
# File 'lib/hooks/hook.rb', line 68

def initialize(*)
  super
  @halted = false
end

Instance Method Details

#halted!Object


73
74
75
76
# File 'lib/hooks/hook.rb', line 73

def halted!
  @halted = true
  self
end

#halted?Boolean

Returns true or false based on whether all callbacks in the hook chain were successfully executed.

Returns:

  • (Boolean)

80
81
82
# File 'lib/hooks/hook.rb', line 80

def halted?
  @halted
end

#not_halted?Boolean

Returns:

  • (Boolean)

84
85
86
# File 'lib/hooks/hook.rb', line 84

def not_halted?
  not @halted
end