Class: ClaudeAgentSDK::FiberBoundary::Break

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

Overview

Sentinel returned by .invoke_iteration when the user block attempted ‘break`.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Break

Returns a new instance of Break.



51
52
53
# File 'lib/claude_agent_sdk/fiber_boundary.rb', line 51

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



49
50
51
# File 'lib/claude_agent_sdk/fiber_boundary.rb', line 49

def value
  @value
end