Class: ClaudeAgentSDK::HookMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Hook matcher configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(matcher: nil, hooks: []) ⇒ HookMatcher

Returns a new instance of HookMatcher.



206
207
208
209
# File 'lib/claude_agent_sdk/types.rb', line 206

def initialize(matcher: nil, hooks: [])
  @matcher = matcher
  @hooks = hooks
end

Instance Attribute Details

#hooksObject

Returns the value of attribute hooks.



204
205
206
# File 'lib/claude_agent_sdk/types.rb', line 204

def hooks
  @hooks
end

#matcherObject

Returns the value of attribute matcher.



204
205
206
# File 'lib/claude_agent_sdk/types.rb', line 204

def matcher
  @matcher
end