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 ArgsPrinter

print_args, print_input_value, print_value

Methods included from DescriptionPrinter

print_description

Class Method Details



257
258
259
260
261
# File 'lib/graphql/schema/printer.rb', line 257

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