class
StrictYAML::Comment
Defined in:
strict-yaml/node.crConstructors
Instance Method Summary
- #==(other : Comment) : Bool
-
#pretty_print(pp : PrettyPrint) : Nil
Pretty prints
selfinto the given printer. - #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_strict_yaml(io : IO) : Nilto_strict_yaml : String to_strict_yaml
Class methods inherited from class Object
from_strict_yaml(source : String)from_strict_yaml(value : StrictYAML::Any) from_strict_yaml
Constructor Detail
Instance Method Detail
Description copied from class Object
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.