class IcAgent::Ast::Nodes::Comment
Represents a comment node in the abstract syntax tree, a subclass of NamedNode
.
Public Instance Methods
title()
click to toggle source
The title of the comment node.
# File lib/ic_agent/ast/nodes/named_nodes.rb, line 48 def title :comment end
to_s()
click to toggle source
Converts the comment node to a string representation with '#' prefix.
# File lib/ic_agent/ast/nodes/named_nodes.rb, line 53 def to_s "# #{elements[0].to_s}" end