Class: GraphQL::Schema::Printer::TypeKindPrinters::EnumPrinter
- Inherits:
-
Object
- Object
- GraphQL::Schema::Printer::TypeKindPrinters::EnumPrinter
- Defined in:
- lib/graphql/schema/printer.rb
Class Method Summary collapse
Class Method Details
.print(type) ⇒ Object
130 131 132 133 |
# File 'lib/graphql/schema/printer.rb', line 130 def self.print(type) values = type.values.values.map{ |v| " #{v.name}" }.join("\n") "enum #{type.name} {\n#{values}\n}" end |