Class: RuboCop::Cop::GraphQL::ExtractType
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::GraphQL::ExtractType
- Includes:
- GraphQL::NodePattern
- Defined in:
- lib/rubocop/cop/graphql/extract_type.rb
Instance Method Summary collapse
Methods included from GraphQL::NodePattern
#argument?, #field?, #field_definition?, #field_definition_with_body?
Instance Method Details
#on_class(node) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/rubocop/cop/graphql/extract_type.rb', line 38 def on_class(node) schema_member = RuboCop::GraphQL::SchemaMember.new(node) if (body = schema_member.body) check_fields_prefixes(body) end end |