Class: RSpock::AST::WhereBlock
- Defined in:
- lib/rspock/ast/where_block.rb
Defined Under Namespace
Classes: MalformedError
Instance Attribute Summary
Attributes inherited from Block
Instance Method Summary collapse
- #data ⇒ Object
- #header ⇒ Object
-
#initialize(node) ⇒ WhereBlock
constructor
A new instance of WhereBlock.
- #successors ⇒ Object
Methods inherited from Block
#<<, #children, #node_container=, #node_container?, #range, #succession_error_msg, #unshift, #valid_successor?
Constructor Details
#initialize(node) ⇒ WhereBlock
Returns a new instance of WhereBlock.
9 10 11 |
# File 'lib/rspock/ast/where_block.rb', line 9 def initialize(node) super(:Where, node) end |
Instance Method Details
#data ⇒ Object
17 18 19 |
# File 'lib/rspock/ast/where_block.rb', line 17 def data @data ||= parse_data end |
#header ⇒ Object
13 14 15 |
# File 'lib/rspock/ast/where_block.rb', line 13 def header @header ||= parse_header end |
#successors ⇒ Object
21 22 23 |
# File 'lib/rspock/ast/where_block.rb', line 21 def successors @successors ||= [:End].freeze end |