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, comment : Nodes = [] of Node) #

[View source]

Instance Method Detail

def behavior : Behavior #

def clone #

[View source]
def comment : Nodes #

def copy_with(ends _ends = @ends, items _items = @items, behavior _behavior = @behavior, separator _separator = @separator, pad _pad = @pad, comment _comment = @comment) #

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

def items : Array(Nodes) #

def pad : Bool #

def separator : String #