Class: ClaudeHooks::Output::SessionEnd
- Defined in:
- lib/claude_hooks/output/session_end.rb
Overview
Note: SessionEnd hooks cannot block session termination - they're for cleanup only
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
-
.merge(*outputs) ⇒ Object
MERGE HELPER ===.
Instance Method Summary collapse
-
#exit_code ⇒ Object
SessionEnd hooks always return 0 - they're for cleanup only.
Methods inherited from Base
#continue?, for_hook_type, #hook_specific_output, #initialize, #output_and_exit, #output_stream, #stop_reason, #suppress_output?, #system_message, #terminal_sequence, #to_json
Constructor Details
This class inherits a constructor from ClaudeHooks::Output::Base
Class Method Details
.merge(*outputs) ⇒ Object
MERGE HELPER ===
18 19 20 21 |
# File 'lib/claude_hooks/output/session_end.rb', line 18 def self.merge(*outputs) merged = super(*outputs) new(merged.data) end |
Instance Method Details
#exit_code ⇒ Object
SessionEnd hooks always return 0 - they're for cleanup only
12 13 14 |
# File 'lib/claude_hooks/output/session_end.rb', line 12 def exit_code 0 end |