abstract struct Spectator::Formatting::Components::ResultBlock

Overview

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

1) Title
   Label: Subtitle

   Content
   # Source

Direct Known Subclasses

Defined in:

spectator/formatting/components/result_block.cr

Constructors

Instance Method Summary

Constructor methods inherited from struct Spectator::Formatting::Components::Block

new(*, indent : Int32 = INDENT) new

Instance methods inherited from class Object

should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should(matcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should
, should_eventually(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_eventually, should_never(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_never, should_not(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should_not(matcher : Spectator::Matchers::NilMatcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not(matcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not

Constructor Detail

def self.new(example : Example, index : Int32, subindex : Int32 = 0) #

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


[View source]

Instance Method Detail

def to_s(io : IO) : Nil #

Writes the component's output to the specified stream.


[View source]