abstract struct Spectator::Formatting::Components::Block
Overview
Base type for handling indented output.
Indents are tracked and automatically printed.
Use #indent to increase the indent for the duration of a block.
Use #line to produce a line with an indentation prefixing it.
Direct Known Subclasses
Defined in:
spectator/formatting/components/block.crConstructors
- 
        .new(*, indent : Int32 = INDENT)
        
          Creates the block. 
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
        
        def self.new(*, indent : Int32 = INDENT)
        #
      
      
        Creates the block. A default indent size can be specified.