Module: GraphQL::Schema::Member::AcceptsDefinition::ToGraphQLExtension Private
- Defined in:
- lib/graphql/schema/member/accepts_definition.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.
Instance Method Summary collapse
-
#to_graphql ⇒ Object
private
Instance Method Details
#to_graphql ⇒ 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.
119 120 121 122 123 124 125 126 127 128 |
# File 'lib/graphql/schema/member/accepts_definition.rb', line 119 def to_graphql defn = super accepts_definition_methods.each do |method_name| value = public_send(method_name) if !value.nil? defn = defn.redefine { public_send(method_name, *value) } end end defn end |