Class: RSpock::AST::CleanupBlock

Inherits:
Block
  • Object
show all
Defined in:
lib/rspock/ast/cleanup_block.rb

Instance Attribute Summary

Attributes inherited from Block

#node, #type

Instance Method Summary collapse

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

#successorsObject



11
12
13
# File 'lib/rspock/ast/cleanup_block.rb', line 11

def successors
  @successors ||= [:Where, :End].freeze
end