Class: GraphQL::Cop::ResolveMethods
- Inherits:
-
RuboCop::Cop::Base
- Object
- RuboCop::Cop::Base
- GraphQL::Cop::ResolveMethods
- Extended by:
- AutoCorrector
- Defined in:
- lib/graphql/cop/resolve_methods.rb
Constant Summary collapse
- NEEDLESS_NULL_FALSE =
<<-ERR `null: false` is the default, it can be removed. ERR
- NEEDLESS_REQUIRED_TRUE =
<<-ERR `required: true` is the default, it can be removed. ERR
Instance Method Summary collapse
Instance Method Details
#on_send(node) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/graphql/cop/resolve_methods.rb', line 16 def on_send(node) recv, method_name, args = *node if recv.nil? if method_name == :field elsif method_name == :argument end end end |