Class: ClaudeCode::TextBlock

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

Overview

Content block types

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ TextBlock

Returns a new instance of TextBlock.



11
12
13
# File 'lib/claude_code/types.rb', line 11

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



9
10
11
# File 'lib/claude_code/types.rb', line 9

def text
  @text
end