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(directive) ⇒ Object
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 |