Class: Foxtail::Syntax::Parser::AST::BaseComment
- Inherits:
-
SyntaxNode
- Object
- BaseNode
- SyntaxNode
- Foxtail::Syntax::Parser::AST::BaseComment
- Defined in:
- lib/foxtail/syntax/parser/ast/base_comment.rb
Overview
Base class for all comment types in Fluent syntax
Direct Known Subclasses
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Attributes inherited from SyntaxNode
Attributes inherited from BaseNode
Instance Method Summary collapse
-
#initialize(content) ⇒ BaseComment
constructor
A new instance of BaseComment.
Methods inherited from SyntaxNode
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
#content ⇒ Object
Returns the value of attribute content.
9 10 11 |
# File 'lib/foxtail/syntax/parser/ast/base_comment.rb', line 9 def content @content end |