Sha256: 9b335deaa4804fc8393332b3f5b50fb5d31516550288e7461e874cf2deccb0b8

Contents?: true

Size: 199 Bytes

Versions: 51

Compression:

Stored size: 199 Bytes

Contents

<%= type_ruby_name %> = GraphQL::EnumType.define do
  name "<%= type_graphql_name %>"
<% prepared_values.each do |v| %>  value "<%= v[0] %>"<%= v.length > 1 ? ", value: #{v[1]}" : "" %>
<% end %>end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
graphql-1.8.1 lib/generators/graphql/templates/enum.erb
graphql-1.8.0 lib/generators/graphql/templates/enum.erb
graphql-1.8.0.pre11 lib/generators/graphql/templates/enum.erb
graphql-1.8.0.pre10 lib/generators/graphql/templates/enum.erb
graphql-1.7.14 lib/generators/graphql/templates/enum.erb
graphql-1.8.0.pre9 lib/generators/graphql/templates/enum.erb
graphql-1.8.0.pre8 lib/generators/graphql/templates/enum.erb
graphql-1.7.13 lib/generators/graphql/templates/enum.erb
graphql-1.8.0.pre7 lib/generators/graphql/templates/enum.erb
graphql-1.7.12 lib/generators/graphql/templates/enum.erb
graphql-1.7.11 lib/generators/graphql/templates/enum.erb
graphql-1.7.10 lib/generators/graphql/templates/enum.erb
graphql-1.8.0.pre6 lib/generators/graphql/templates/enum.erb
graphql-1.8.0.pre5 lib/generators/graphql/templates/enum.erb
graphql-1.7.9 lib/generators/graphql/templates/enum.erb
graphql-1.8.0.pre4 lib/generators/graphql/templates/enum.erb
graphql-1.8.0.pre3 lib/generators/graphql/templates/enum.erb
graphql-1.7.8 lib/generators/graphql/templates/enum.erb
graphql-1.8.0.pre2 lib/generators/graphql/templates/enum.erb
graphql-1.7.7 lib/generators/graphql/templates/enum.erb