class

Tui::TUML::Node

Inherits Reference / Object

Parsed node representing a widget

Constructors

new(type : String, id : String | Nil = nil, classes : Array(String) = [] of String, attributes : Hash(String, String) = {} of String => String, text : String | Nil = nil, children : Array(Node) = [] of Node)
Source

Instance methods

attributes
Source
attributes=(attributes : Hash(String, String))
Source
children
Source
children=(children : Array(Node))
Source
classes
Source
classes=(classes : Array(String))
Source
id=(id : String | Nil)
Source
text
Source
text=(text : String | Nil)
Source
to_s(indent : Int32 = 0) : String

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
type
Source
type=(type : String)
Source