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

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

Class Method Summary collapse

Methods included from ArgsPrinter

print_args, print_input_value, print_value

Class Method Details



143
144
145
146
# File 'lib/graphql/schema/printer.rb', line 143

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