Class: Foxtail::Syntax::Parser::AST::BaseComment

Inherits:
SyntaxNode show all
Defined in:
lib/foxtail/syntax/parser/ast/base_comment.rb

Overview

Base class for all comment types in Fluent syntax

Direct Known Subclasses

Comment, GroupComment, ResourceComment

Instance Attribute Summary collapse

Attributes inherited from SyntaxNode

#span

Attributes inherited from BaseNode

#type

Instance Method Summary collapse

Methods inherited from SyntaxNode

#add_span

Methods inherited from BaseNode

#==, #accept, #children, #to_h

Constructor Details

#initialize(content) ⇒ BaseComment

Returns a new instance of BaseComment.



11
12
13
14
# File 'lib/foxtail/syntax/parser/ast/base_comment.rb', line 11

def initialize(content)
  super()
  @content = content
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



9
10
11
# File 'lib/foxtail/syntax/parser/ast/base_comment.rb', line 9

def content
  @content
end