class

YAML::Nodes::Scalar

Inherits YAML::Nodes::Node / Reference / Object

A scalar value.

Constructors

new(value : String)

Creates a scalar with the given value.

Source

Instance methods

kind

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

Source
style

The style of this scalar.

Source
style=(style : ScalarStyle)

The style of this scalar.

Source
to_yaml(builder : YAML::Builder) : Nil
Source
value

The value of this scalar.

Source
value=(value : String)

The value of this scalar.

Source