Class: RSpock::AST::CleanupBlock
- Defined in:
- lib/rspock/ast/cleanup_block.rb
Instance Attribute Summary
Attributes inherited from Block
Instance Method Summary collapse
-
#initialize(node) ⇒ CleanupBlock
constructor
A new instance of CleanupBlock.
- #successors ⇒ Object
Methods inherited from Block
#<<, #children, #node_container=, #node_container?, #range, #succession_error_msg, #unshift, #valid_successor?
Constructor Details
#initialize(node) ⇒ CleanupBlock
Returns a new instance of CleanupBlock.
7 8 9 |
# File 'lib/rspock/ast/cleanup_block.rb', line 7 def initialize(node) super(:Cleanup, node) end |
Instance Method Details
#successors ⇒ Object
11 12 13 |
# File 'lib/rspock/ast/cleanup_block.rb', line 11 def successors @successors ||= [:Where, :End].freeze end |