struct Mint::Formatter::Group

Overview

Describes a group of nodes, with start and end characters and a separator character (or characters). The layout of the nodes are determined during rendering based on the behavior:

BreakAll:

BreakNotFits:

Block:

Defined in:

formatter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ends : Tuple(String, String), items : Array(Nodes), behavior : Behavior, separator : String, pad : Bool) #

[View source]

Instance Method Detail

def behavior : Behavior #

def clone #

[View source]
def copy_with(ends _ends = @ends, items _items = @items, behavior _behavior = @behavior, separator _separator = @separator, pad _pad = @pad) #

[View source]
def ends : Tuple(String, String) #

def items : Array(Nodes) #

def pad : Bool #

def separator : String #