struct
KYAML::ClassifiedComments
Overview
Comments classified at emit time, ready for the emitter to consult.
Lookup tables are keyed by YAML::Nodes::Node object identity.
Defined in:
kyaml/classifier.crConstructors
Instance Method Summary
- #commented : Set(YAML::Nodes::Node)
-
#header : Array(KYAML::Comment)
header
is flat since a doc has at most one header position above its---` -
#leading : Hash(YAML::Nodes::Node, Array(KYAML::Comment))
leading is a list per node, since multiple comments can stack above a node
-
#tail : Hash(YAML::Nodes::Node, Array(KYAML::Comment))
tail is a list per container node, holding comments after the last child
-
#trailing : Hash(YAML::Nodes::Node, KYAML::Comment)
trailing is a single comment per node, since there can only be one trailing comment per source line
Instance methods inherited from struct Struct
==(other : KYAML::Any)
==
Instance methods inherited from struct Value
==(other : KYAML::Any)
==
Instance methods inherited from class Object
to_kyaml(io : IO) : Nilto_kyaml(builder : KYAML::Builder) : Nil
to_kyaml : String to_kyaml
Constructor Detail
Instance Method Detail
headeris flat since a doc has at most one header position above its---`
leading is a list per node, since multiple comments can stack above a node
tail is a list per container node, holding comments after the last child
trailing is a single comment per node, since there can only be one trailing comment per source line