rubocop / rubocop-ast

RuboCop's AST extensions and NodePattern functionality
https://docs.rubocop.org/rubocop-ast
MIT License
112 stars 53 forks source link

Define `recursive_*literal?` methods using macro #298

Closed sambostock closed 5 months ago

sambostock commented 5 months ago

This allows us to document the methods, without needing to repeat the implementations.

This is the same approach as #297.

marcandre commented 5 months ago

Very nice, thank you.