struct Mint::Formatter::BrokenString

Overview

Describes a broken string ("Hello" \ "There") and contains logic to break the string just so that it fits with the maximum column length. It tries to break by words but will break words that doesn't fit in the remaining column width.

Defined in:

formatter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(items : Array(String | Nodes)) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(items _items = @items) #

[View source]
def items : Array(String | Nodes) #