class

Dust::RenderContext

Inherits Reference < Object

Constants

BLOCKS = ['█', '▓', '▒', '░', ' ']

Constructors

new(options : RenderOptions, size_width : Int32, base_size : UInt64, name_width : Int32, ls_colors : Color::LsColors = Color::LsColors.from_env)
Source

Instance methods

base_size
Source
biggest?(index : Int32, count : Int32) : Bool

The largest entry of its level gets printed in red.

Source
last?(index : Int32, count : Int32) : Bool

The last entry printed at its level drives └ versus ├.

Source
ls_colors
Source
name_width
Source
options
Source
percent_size(node : DisplayNode) : Float64
Source
size_width
Source
tree_chars(last : Bool, has_children : Bool) : String
Source