Class: Hooks::Hook::Results
- Inherits:
-
Array
- Object
- Array
- Hooks::Hook::Results
- Defined in:
- lib/hooks/hook.rb
Instance Method Summary collapse
- #halted! ⇒ Object
-
#halted? ⇒ Boolean
Returns true or false based on whether all callbacks in the hook chain were successfully executed.
-
#initialize ⇒ Results
constructor
so much code for nothing…
- #not_halted? ⇒ Boolean
Constructor Details
#initialize ⇒ Results
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.
80 81 82 |
# File 'lib/hooks/hook.rb', line 80 def halted? @halted end |
#not_halted? ⇒ Boolean
84 85 86 |
# File 'lib/hooks/hook.rb', line 84 def not_halted? not @halted end |