class Sheen::Tree::Leaf

Overview

A node in a tree.

A childless implementation of Node whose value is the string it was built from.

Defined in:

sheen/tree.cr

Constructors

Instance Method Summary

Instance methods inherited from class Sheen::Tree::Node

children : Children children, hidden? : Bool hidden?, to_s(io : IO) : Nil to_s, value : String value

Constructor Detail

def self.new(value : String, hidden : Bool = false) #

[View source]

Instance Method Detail

def children : Children #

A leaf by definition has no children


[View source]
def hidden? : Bool #
Description copied from class Sheen::Tree::Node

If this node is hidden from rendering or not.


[View source]
def value : String #
Description copied from class Sheen::Tree::Node

The node's display value.


[View source]