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 maxmimum column length. It tries to break by words but will break words that doens't fit in the remaning 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) #