class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer
def test(ruby, trace: self.class::Compiler::Trace.new)
-
(Node)
- the Ruby AST
def test(ruby, trace: self.class::Compiler::Trace.new) ruby = ruby_ast(ruby) if ruby.is_a?(String) returned = @node_pattern.as_lambda.call(ruby, trace: trace) self.class::Result.new(self, trace, returned, ruby) end