Class: GraphQL::UnionType::AcceptPossibleTypesDefinition
- Inherits:
-
Object
- Object
- GraphQL::UnionType::AcceptPossibleTypesDefinition
- Defined in:
- lib/graphql/union_type.rb
Overview
Rubocop was unhappy about the syntax when this was a proc literal
Class Method Summary collapse
Class Method Details
.call(target, possible_types, options = {}) ⇒ Object
7 8 9 |
# File 'lib/graphql/union_type.rb', line 7 def self.call(target, possible_types, = {}) target.add_possible_types(possible_types, **) end |