class

StrictYAML::Scalar

Inherits StrictYAML::Node < Reference < Object

Constructors

new(loc : Location, value : String, comments : Array(Comment) = [] of Comment)
Source
new(value : String)
Source
new(token : Token)
Source

Instance methods

==(other : Scalar) : Bool
Source
pretty_print(pp : PrettyPrint) : Nil

Pretty prints self into the given printer.

By default appends a text that is the result of invoking #inspect on self. Subclasses should override for custom pretty printing.

Source
quoted?(str : String) : Bool

TODO: clarify in spec for upcoming #parse: non-quoted scalar == implicit string (CAN be parsed into boolean/null) quoted scalar == explicit string (CANNOT be parsed into boolean/null)

Source
to_object
Source
value
Source
value=(value : String)
Source