Class: RSpock::AST::TestMethodTransformation

Inherits:
ASTTransform::AbstractTransformation
  • Object
show all
Defined in:
lib/rspock/ast/test_method_transformation.rb

Instance Method Summary collapse

Constructor Details

#initialize(source_map, start_block_class, end_block_class, strict: true) ⇒ TestMethodTransformation

Returns a new instance of TestMethodTransformation.



10
11
12
13
14
15
16
# File 'lib/rspock/ast/test_method_transformation.rb', line 10

def initialize(source_map, start_block_class, end_block_class, strict: true)
  @source_map = source_map
  @start_block_class = start_block_class
  @end_block_class = end_block_class
  @strict = strict
  @blocks = []
end

Instance Method Details

#run(node) ⇒ Object



18
19
20
21
# File 'lib/rspock/ast/test_method_transformation.rb', line 18

def run(node)
  parse(node)
  build_ast(node)
end