struct Mint::Formatter::List
- Mint::Formatter::List
- Struct
- Value
- Object
Overview
Describes a list that is formatted like so:
- Multiline items, comments, documentation comments and consecutive block comments are separated from other items with double lines.
Defined in:
formatter.crConstructors
Instance Method Summary
- #clone
- #comment : Nodes | Nil
- #copy_with(items _items = @items, separator _separator = @separator, comment _comment = @comment)
- #items : Array(Tuple(Ast::Node, Nodes))
- #separator : String | Nil
Constructor Detail
def self.new(items : Array(Tuple(Ast::Node, Nodes)), separator : String | Nil = nil, comment : Nodes | Nil = nil)
#
Instance Method Detail
def copy_with(items _items = @items, separator _separator = @separator, comment _comment = @comment)
#