Module: GraphQL::Define::InstanceDefinable
- Included in:
- Argument, BaseType, GraphQL::Directive, Field
- Defined in:
- lib/graphql/define/instance_definable.rb
Overview
This module provides the ‘.define { … }` API for BaseType, Field, Argument and GraphQL::Directive.
The goals are:
-
Minimal overhead in consuming classes
-
Independence between consuming classes
-
Extendable by third-party libraries without monkey-patching or other nastiness
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
43 44 45 |
# File 'lib/graphql/define/instance_definable.rb', line 43 def self.included(base) base.extend(ClassMethods) end |