Class: ClaudeAgentSDK::TextBlock
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::TextBlock
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Text content block
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:) ⇒ TextBlock
constructor
A new instance of TextBlock.
Constructor Details
#initialize(text:) ⇒ TextBlock
Returns a new instance of TextBlock.
10 11 12 |
# File 'lib/claude_agent_sdk/types.rb', line 10 def initialize(text:) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
8 9 10 |
# File 'lib/claude_agent_sdk/types.rb', line 8 def text @text end |