Class: Aspen::AST::Nodes::CustomStatement

Inherits:
Object
  • Object
show all
Defined in:
lib/aspen/ast/nodes/custom_statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



6
7
8
# File 'lib/aspen/ast/nodes/custom_statement.rb', line 6

def content
  @content
end