Class: RSpock::AST::TestMethodTransformation
- Inherits:
-
ASTTransform::AbstractTransformation
- Object
- ASTTransform::AbstractTransformation
- RSpock::AST::TestMethodTransformation
- Defined in:
- lib/rspock/ast/test_method_transformation.rb
Instance Method Summary collapse
-
#initialize(source_map, start_block_class, end_block_class, strict: true) ⇒ TestMethodTransformation
constructor
A new instance of TestMethodTransformation.
- #run(node) ⇒ Object
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 |