enum

Smith::Hooks::Event

Inherits Enum < Comparable < Value < Object

Constants

SessionStart = 0
UserPromptSubmit = 1
PreToolUse = 2
PostToolUse = 3
Stop = 4

Class methods

from_key(key : String) : Event | Nil
Source

Instance methods

post_tool_use?

Returns true if this enum value equals PostToolUse

Source
pre_tool_use?

Returns true if this enum value equals PreToolUse

Source
session_start?

Returns true if this enum value equals SessionStart

Source
stop?

Returns true if this enum value equals Stop

Source
to_key

The spelling used in config.toml and in the hook_event_name field.

Source
user_prompt_submit?

Returns true if this enum value equals UserPromptSubmit

Source