Sha256: 585801993819ff53ade687f36f064ccad2d6a455825d5eec58eede0de2e286e4

Contents?: true

Size: 309 Bytes

Versions: 225

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    # Classes that include this module just implement functions for working
    # with symbol nodes.
    module SymbolHelp
      def hash_key?(node)
        node.parent&.pair_type? && node == node.parent.child_nodes.first
      end
    end
  end
end

Version data entries

225 entries across 216 versions & 21 rubygems

Version Path
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/lib/rubocop/cop/mixin/symbol_help.rb
rubocop-1.63.1 lib/rubocop/cop/mixin/symbol_help.rb
rubocop-1.63.0 lib/rubocop/cop/mixin/symbol_help.rb
bison-0.1.0 vendor/bundle/ruby/3.2.0/gems/rubocop-1.62.1/lib/rubocop/cop/mixin/symbol_help.rb
rubocop-1.62.1 lib/rubocop/cop/mixin/symbol_help.rb
rubocop-1.62.0 lib/rubocop/cop/mixin/symbol_help.rb
rubocop-1.61.0 lib/rubocop/cop/mixin/symbol_help.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.2/lib/rubocop/cop/mixin/symbol_help.rb
rubocop-1.60.2 lib/rubocop/cop/mixin/symbol_help.rb
study_line-0.2.7 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/cop/mixin/symbol_help.rb
study_line-0.2.6 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/cop/mixin/symbol_help.rb
study_line-0.2.5 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/cop/mixin/symbol_help.rb
study_line-0.2.4 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/cop/mixin/symbol_help.rb
study_line-0.2.3 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/cop/mixin/symbol_help.rb
study_line-0.2.2 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/cop/mixin/symbol_help.rb
rubocop-1.60.1 lib/rubocop/cop/mixin/symbol_help.rb
study_line-0.2.1 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/cop/mixin/symbol_help.rb
study_line-0.2.0 vendor/bundle/ruby/3.2.0/gems/rubocop-1.60.0/lib/rubocop/cop/mixin/symbol_help.rb
rubocop-1.60.0 lib/rubocop/cop/mixin/symbol_help.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/rubocop-1.57.2/lib/rubocop/cop/mixin/symbol_help.rb