class StrictYAML::Scalar
Defined in:
strict-yaml/node.crConstructors
- .new(loc : Location, value : String, comments : Array(Comment) = [] of Comment)
- .new(value : String)
- .new(token : Token)
Instance Method Summary
- #==(other : Scalar) : Bool
-
#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)
- #to_object : Any::Type
- #value : String
- #value=(value : String)
Instance methods inherited from class StrictYAML::Node
==(other : Node) : Bool
==,
comments : Array(Comment)
comments,
loc : Location
loc,
loc=(loc : Location)
loc=,
to_object : Any::Type
to_object
Constructor methods inherited from class StrictYAML::Node
new(loc : Location, comments : Array(Comment) = [] of Comment)
new
Instance methods inherited from class Object
to_yaml(io : IO) : Nilto_yaml : String to_yaml
Class methods inherited from class Object
from_yaml(source : String)from_yaml(value : StrictYAML::Any) from_yaml
Constructor Detail
Instance Method Detail
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)