Skip to content

Commit

Permalink
[Fixes #135] Fix doc URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Oct 5, 2020
1 parent 3c180c1 commit 5301f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/node_pattern.adoc
Expand Up @@ -358,8 +358,8 @@ def_node_matcher :class_creator, '(send #global_const?({:Class :Module}) :new ..

The RuboCop base includes two useful methods to use the node pattern with Ruby in a
simple way. You can use the macros to define methods. The basics are
https://www.rubydoc.info/gems/rubocop/RuboCop/NodePattern/Macros#def_node_matcher-instance_method[def_node_matcher]
and https://www.rubydoc.info/gems/rubocop/RuboCop/NodePattern/Macros#def_node_search-instance_method[def_node_search].
https://www.rubydoc.info/gems/rubocop-ast/RuboCop/AST/NodePattern/Macros#def_node_matcher-instance_method[def_node_matcher]
and https://www.rubydoc.info/gems/rubocop-ast/RuboCop/AST/NodePattern/Macros#def_node_search-instance_method[def_node_search].

When you define a pattern, it creates a method that accepts a node and tries to match.

Expand Down

0 comments on commit 5301f67

Please sign in to comment.