class

Smith::UI::ToolBlock

Inherits Smith::UI::Block < Reference < Object

Constructors

new(id : String, name : String, summary : String, status : Status = Status::Running, result : String = "", started_at : Time::Instant = Time.instant)
Source

Class methods

summarize(args : JSON::Any) : String

The one argument a human recognizes the call by.

Source

Instance methods

elapsed
Source
finalized?

Whether the block has stopped changing, and can therefore be printed into the scrollback once and never redrawn. Most blocks arrive finished; the streaming ones say when they are done.

Source
lines(width : Int32) : Array(StyledLine)
Source
name
Source
result
Source
result=(result : String)
Source
started_at
Source
status
Source
status=(status : Status)
Source
summary
Source

Nested types