Module: GraphQL::Schema::Member::HasInterfaces::ClassConfigured

Defined in:
lib/graphql/schema/member/has_interfaces.rb

Defined Under Namespace

Modules: InheritedInterfaces

Instance Method Summary collapse

Instance Method Details

#inherited(child_class) ⇒ Object

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.



74
75
76
77
# File 'lib/graphql/schema/member/has_interfaces.rb', line 74

def inherited(child_class)
  super
  child_class.extend(InheritedInterfaces)
end