Class: RSpock::AST::EndBlock
Instance Attribute Summary
Attributes inherited from Block
Instance Method Summary collapse
-
#initialize ⇒ EndBlock
constructor
A new instance of EndBlock.
- #successors ⇒ Object
Methods inherited from Block
#<<, #children, #node_container=, #node_container?, #range, #succession_error_msg, #unshift, #valid_successor?
Constructor Details
#initialize ⇒ EndBlock
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
#successors ⇒ Object
12 13 14 |
# File 'lib/rspock/ast/end_block.rb', line 12 def successors @successors ||= [].freeze end |