class Lingo::Node
- Lingo::Node
- Reference
- Object
Defined in:
lingo/node.crConstructors
Instance Method Summary
- #children : Array(Lingo::Node)
- #column : Int32
- #full_value
- #line : Int32
- #name : String | Symbol | Nil
- #name=(name : String | Symbol | Nil)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #value : String
Constructor Detail
def self.new(value : String = "", children : Array(Lingo::Node) = [] of Lingo::Node, name : String | Symbol | Nil = nil.as(String | ::Nil | Symbol | ::Nil), line : Int32 = 0, column : Int32 = 0)
#
Instance Method Detail
def to_s
#
Description copied from class Object
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
.