Class: GraphQL::Schema::Printer::TypeKindPrinters::DirectivePrinter

Inherits:
Object
  • Object
show all
Extended by:
ArgsPrinter, DescriptionPrinter
Defined in:
lib/graphql/schema/printer.rb

Class Method Summary collapse

Methods included from DescriptionPrinter

print_description

Methods included from ArgsPrinter

print_args, print_input_value, print_value

Class Method Details


175
176
177
178
179
# File 'lib/graphql/schema/printer.rb', line 175

def self.print(directive)
  "#{print_description(directive)}"\
  "directive @#{directive.name}#{print_args(directive)} "\
  "on #{directive.locations.join(' | ')}"
end