class Sheen::Tree::Config

Overview

The mutable render configuration for a Branch node, containing the enumerator and indenter generators and the enumerator, item and root styles.

Defined in:

sheen/tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(enumerator : Sheen::Tree::Children, Int32 -> String = Enumerators::Default.to_proc, indenter : Sheen::Tree::Children, Int32 -> String = ->Tree.default_indenter(Children, Int32), enumerator_style_picker : Sheen::Tree::Children, Int32 -> Sheen::Style = ->(_c : Children, _i : Int32) do Style.new.padding_right(1) end, item_style_picker : Sheen::Tree::Children, Int32 -> Sheen::Style = ->(_c : Children, _i : Int32) do Style.new end, root_style : Sheen::Style = Style.new) #

[View source]

Instance Method Detail

def enumerator : Enumerator #

The branch-prefix generator.


[View source]
def enumerator=(enumerator : Enumerator) #

The branch-prefix generator.


[View source]
def enumerator_style_picker : StylePicker #

Selects the style applied to each enumerator prefix.


[View source]
def enumerator_style_picker=(enumerator_style_picker : StylePicker) #

Selects the style applied to each enumerator prefix.


[View source]
def indenter : Indenter #

The indent generator.


[View source]
def indenter=(indenter : Indenter) #

The indent generator.


[View source]
def item_style_picker : StylePicker #

Selects the style applied to each item's value.


[View source]
def item_style_picker=(item_style_picker : StylePicker) #

Selects the style applied to each item's value.


[View source]
def root_style : Style #

The style applied to the root node's value.


[View source]
def root_style=(root_style : Style) #

The style applied to the root node's value.


[View source]