Node Pattern Rubocop

You want to use the any order <> for keyword argument lookups:

(send nil? :enum (hash <(pair (sym :_prefix) true) ...>))

Also, the true in this pattern means a node that is true_type?, thus a node corresponding to a literal true in Ruby.

You can see it in action

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top