abstract struct Spectator::Formatting::Components::ResultBlock
- Spectator::Formatting::Components::ResultBlock
- Spectator::Formatting::Components::Block
- Struct
- Value
- Object
Overview
Base class that displayed indexed results in block form. These typically take the form:
1) Title
   Label: Subtitle
   Content
   # SourceDirect Known Subclasses
- Spectator::Formatting::Components::ErrorResultBlock
- Spectator::Formatting::Components::FailResultBlock
- Spectator::Formatting::Components::PendingResultBlock
Defined in:
spectator/formatting/components/result_block.crConstructors
- 
        .new(example : Example, index : Int32, subindex : Int32 = 0)
        
          Creates the block with the specified index and for the given example. 
Instance Method Summary
- 
        #to_s(io)
        
          Writes the component's output to the specified stream. 
Constructor methods inherited from struct Spectator::Formatting::Components::Block
  
  
    
      new(*, indent : Int32 = INDENT)
    new
    
  
    
  
    
    
    
  
    
    
    
  
    
  Instance methods inherited from class Object
  
  
    
      should(matcher, message = nil)
    should, 
    
  
    
      should_eventually(matcher, message = nil)
    should_eventually, 
    
  
    
      should_never(matcher, message = nil)
    should_never, 
    
  
    
      should_not(matcher, message = nil)
    should_not
    
  
    
    
  
Constructor Detail
Creates the block with the specified index and for the given example.