Module: RuboCop::GraphQL::NodeUniqueness

Included in:
Cop::GraphQL::ArgumentUniqueness, Cop::GraphQL::FieldUniqueness
Defined in:
lib/rubocop/graphql/node_uniqueness.rb

Overview

Shared methods to check duplicated definitions

Instance Method Summary collapse

Instance Method Details

#current_class_full_name(node) ⇒ Object



7
8
9
# File 'lib/rubocop/graphql/node_uniqueness.rb', line 7

def current_class_full_name(node)
  node.each_ancestor(:class).map(&:defined_module_name).join("::")
end