Skip to content

class YAML::Nodes::Scalar
inherits YAML::Nodes::Node

A scalar value.

Class methods

.new(value : String)

Creates a scalar with the given value.

View source

Methods

#kind : String

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

View source

#style : ScalarStyle

The style of this scalar.

View source

#style=(style : ScalarStyle)

The style of this scalar.

View source

#to_yaml(builder : YAML::Builder)

View source

#value : String

The value of this scalar.

View source

#value=(value : String)

The value of this scalar.

View source