struct Mint::Formatter::Group
- Mint::Formatter::Group
- Struct
- Value
- Object
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
:
-
If the whole group fits in the remaning space in the line (current cursor position plus the size of the group) it will use a space as a delimeter.
-
Otherwise the delimeter will include a line-break and the nodes will be layed out in separate lines indented by an extra level. The start character is on the original line and the end character in it's own extra line.
-
If the whole group fits in the remaning space in the line (current cursor position plus the size of the group) it will use a space as a delimeter.
-
Otherwise the elements that would not extend beyong the current line are broken down into a new indented line and so forth...
Block
:
- The group is always broken into a nested layout, separators are not indented.
Defined in:
formatter.crConstructors
Instance Method Summary
- #behavior : Behavior
- #clone
- #copy_with(ends _ends = @ends, items _items = @items, behavior _behavior = @behavior, separator _separator = @separator, pad _pad = @pad)
- #ends : Tuple(String, String)
- #items : Array(Nodes)
- #pad : Bool
- #separator : String