Class: ClaudeAgentSDK::TextBlock

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

Overview

Text content block

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:) ⇒ TextBlock

Returns a new instance of TextBlock.



66
67
68
# File 'lib/claude_agent_sdk/types.rb', line 66

def initialize(text:)
  @text = text
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



64
65
66
# File 'lib/claude_agent_sdk/types.rb', line 64

def text
  @text
end