Method: RuboCop::Cop::InternalAffairs::NodeDestructuring#node_variable?

Defined in:
lib/rubocop/cop/internal_affairs/node_destructuring.rb

#node_variable?(node) ⇒ Object



23
24
25
# File 'lib/rubocop/cop/internal_affairs/node_destructuring.rb', line 23

def_node_matcher :node_variable?, <<~PATTERN
  {(lvar [#node_suffix? _]) (send nil? [#node_suffix? _])}
PATTERN