class
Sheen::Tree::Config
- Sheen::Tree::Config
- Reference
- Object
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.crConstructors
Instance Method Summary
-
#enumerator : Enumerator
The branch-prefix generator.
-
#enumerator=(enumerator : Enumerator)
The branch-prefix generator.
-
#enumerator_style_picker : StylePicker
Selects the style applied to each enumerator prefix.
-
#enumerator_style_picker=(enumerator_style_picker : StylePicker)
Selects the style applied to each enumerator prefix.
-
#indenter : Indenter
The indent generator.
-
#indenter=(indenter : Indenter)
The indent generator.
-
#item_style_picker : StylePicker
Selects the style applied to each item's value.
-
#item_style_picker=(item_style_picker : StylePicker)
Selects the style applied to each item's value.
-
#root_style : Style
The style applied to the root node's value.
-
#root_style=(root_style : Style)
The style applied to the root node's value.
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)
#
Instance Method Detail
def enumerator_style_picker=(enumerator_style_picker : StylePicker)
#
Selects the style applied to each enumerator prefix.
def item_style_picker=(item_style_picker : StylePicker)
#
Selects the style applied to each item's value.