Class: RSpock::AST::EndBlock

Inherits:
Block
  • Object
show all
Defined in:
lib/rspock/ast/end_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

#initializeEndBlock

Returns a new instance of EndBlock.



7
8
9
10
# File 'lib/rspock/ast/end_block.rb', line 7

def initialize
  super(:End, nil)
  @node_container = false
end

Instance Method Details

#successorsObject



12
13
14
# File 'lib/rspock/ast/end_block.rb', line 12

def successors
  @successors ||= [].freeze
end