type
YamlObj
src
@Serializable
abstract const class YamlObj : Obj
The base class for objects that represent nodes in a YAML hierarchy. The key information for each node is its tag and content.
See the pod documentation for more information.
methods
decode |
Convenience for |
---|---|
equals |
Two YamlObjs are equal if they have the same type, same tag, and same content. |
hash |
Hash is based on tag and content |
loc |
The text location from which this node was parsed. |
tag |
The node's tag. |
toStr |
Returns |
val |
The node's content value. |
write |
Transforms the YAML object back into a string, using block style where applicable. |
Slot Details
decode
src
Obj? decode(YamlSchema schema := YamlSchema.core)
Convenience for schema.decode
.
equals
hash
loc
tag
toStr
val
The node's content value. YamlScalars
always have content of type Str
, YamlLists
with content type YamlObj[]
, and YamlMaps
with YamlObj:YamlObj
.