Module: GraphQL::Schema::Member::HasInterfaces::ClassConfigured Private
- Defined in:
 - lib/graphql/schema/member/has_interfaces.rb
 
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: InheritedInterfaces
Instance Method Summary collapse
- 
  
    
      #inherited(child_class)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
This combination of extended -> inherited -> extended means that the base class (
Schema::Object) won’t have the superclass-related code inInheritedInterfaces, but child classes ofSchema::Objectwill have it. 
Instance Method Details
#inherited(child_class) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This combination of extended -> inherited -> extended
means that the base class (Schema::Object) won’t
have the superclass-related code in InheritedInterfaces,
but child classes of Schema::Object will have it.
That way, we don’t need a superclass.respond_to?(...) check.
      67 68 69 70  | 
    
      # File 'lib/graphql/schema/member/has_interfaces.rb', line 67 def inherited(child_class) super child_class.extend(InheritedInterfaces) end  |