struct KYAML::Comment

Overview

A comment captured from a parsed K/YAML source doc.

Comments are sister sidecars that live adjacent to (but independent of) the main tree. They are only linked to their sibling nodes by source #line and #column position captured at parse time.

Defined in:

kyaml/comment.cr

Constructors

Instance Method Summary

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) : Nil
to_kyaml(builder : KYAML::Builder) : Nil
to_kyaml : String
to_kyaml

Constructor Detail

def self.new(text : String, line : Int32, column : Int32) #

[View source]

Instance Method Detail

def column : Int32 #

[View source]
def line : Int32 #

[View source]
def text : String #

[View source]