Class: GraphQL::Schema::Printer::TypeKindPrinters::DirectivePrinter
- Inherits:
-
Object
- Object
- GraphQL::Schema::Printer::TypeKindPrinters::DirectivePrinter
- 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
Class Method Details
.print(warden, directive) ⇒ Object
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 |