Class: RSpock::AST::TestNode

Inherits:
ASTTransform::Node
  • Object
show all
Defined in:
lib/rspock/ast/node.rb

Overview

RSpock's intermediate representation: custom node types registered on ASTTransform::Node, so s(:rspock_*, ...) constructs these classes with their domain accessors. They exist only between the parser and TestMethodTransformation — the transformation lowers every one of them to plain Ruby nodes before emission.

Instance Method Summary collapse

Instance Method Details

#body_nodeObject



14
# File 'lib/rspock/ast/node.rb', line 14

def body_node  = children[1]

#def_nodeObject



13
# File 'lib/rspock/ast/node.rb', line 13

def def_node   = children[0]

#where_nodeObject



15
# File 'lib/rspock/ast/node.rb', line 15

def where_node = children[2]