class

YAML::Nodes::Node

Inherits Reference / Object

Abstract class of all YAML tree nodes.

Instance methods

anchor

The optional anchor of a node.

Source
anchor=(anchor : String | Nil)

The optional anchor of a node.

Source
end_column

The column where this node ends.

Source
end_column=(end_column : Int32)

The column where this node ends.

Source
end_line

The line where this node ends.

Source
end_line=(end_line : Int32)

The line where this node ends.

Source
kind

Returns the kind of this node, which is equivalent to the class name.

Source
location

Returns a tuple of start_line and start_column.

Source
raise(message) : NoReturn

Raises a YAML::ParseException with the given message located at this node's location.

Source
start_column

The column where this node starts.

Source
start_column=(start_column : Int32)

The column where this node starts.

Source
start_line

The line where this node starts.

Source
start_line=(start_line : Int32)

The line where this node starts.

Source
tag

The optional tag of a node.

Source
tag=(tag : String | Nil)

The optional tag of a node.

Source