module RuboCop::Cop::SymbolHelp
Classes that include this module just implement functions for working with symbol nodes.
Public Instance Methods
Source
# File lib/rubocop/cop/mixin/symbol_help.rb, line 8 def hash_key?(node) node.parent&.pair_type? && node == node.parent.child_nodes.first end