Class: Aspen::AST::Nodes::CustomStatement
- Inherits:
-
Object
- Object
- Aspen::AST::Nodes::CustomStatement
- Defined in:
- lib/aspen/ast/nodes/custom_statement.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(content) ⇒ CustomStatement
constructor
I wonder: Should the AST for CustomGrammar be grouped into lib/ast? Should the CustomStatement AST node contain the Bare Segments and Capture Segments, along with variables with types and labels?.
Constructor Details
#initialize(content) ⇒ CustomStatement
I wonder: Should the AST for CustomGrammar be grouped into lib/ast? Should the CustomStatement AST node contain the Bare Segments and Capture Segments, along with variables with types and labels?
12 13 14 |
# File 'lib/aspen/ast/nodes/custom_statement.rb', line 12 def initialize(content) @content = Aspen::AST::Nodes::Content.new(content) end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/aspen/ast/nodes/custom_statement.rb', line 6 def content @content end |