struct

Spectator::Formatting::Components::ResultBlock

Inherits Spectator::Formatting::Components::Block / Struct / Value / Object

Base class that displayed indexed results in block form. These typically take the form:

1) Title
   Label: Subtitle

   Content
   # Source

Constructors

new(example : Example, index : Int32, subindex : Int32 = 0)

Creates the block with the specified index and for the given example.

Source

Instance methods

to_s(io : IO) : Nil

Writes the component's output to the specified stream.

Source