Skip to content

abstract class YAML::Nodes::Node
inherits Reference

Abstract class of all YAML tree nodes.

Direct known subclasses

YAML::Nodes::Alias YAML::Nodes::Document YAML::Nodes::Mapping YAML::Nodes::Scalar YAML::Nodes::Sequence

Methods

#anchor : String?

The optional anchor of a node.

View source

#anchor=(anchor : String?)

The optional anchor of a node.

View source

#end_column : Int32

The column where this node ends.

View source

#end_column=(end_column)

The column where this node ends.

View source

#end_line : Int32

The line where this node ends.

View source

#end_line=(end_line)

The line where this node ends.

View source

abstract #kind : String

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

View source

#location : Tuple(Int32, Int32)

Returns a tuple of start_line and start_column.

View source

#raise(message)

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

View source

#start_column : Int32

The column where this node starts.

View source

#start_column=(start_column)

The column where this node starts.

View source

#start_line : Int32

The line where this node starts.

View source

#start_line=(start_line)

The line where this node starts.

View source

#tag : String?

The optional tag of a node.

View source

#tag=(tag : String?)

The optional tag of a node.

View source