Class: GraphQL::Schema::Printer::TypeKindPrinters::ObjectPrinter
- Inherits:
-
Object
- Object
- GraphQL::Schema::Printer::TypeKindPrinters::ObjectPrinter
- Extended by:
- DescriptionPrinter, FieldPrinter
- Defined in:
- lib/graphql/schema/printer.rb
Class Method Summary collapse
Methods included from FieldPrinter
Methods included from DescriptionPrinter
Methods included from ArgsPrinter
#print_args, #print_input_value, #print_value
Methods included from DeprecatedPrinter
Class Method Details
.print(type) ⇒ Object
193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/graphql/schema/printer.rb', line 193 def self.print(type) if type.interfaces.any? implementations = " implements #{type.interfaces.map(&:to_s).join(", ")}" else implementations = nil end "#{print_description(type)}"\ "type #{type.name}#{implementations} {\n"\ "#{print_fields(type)}\n"\ "}" end |