Class: Graphql::Generators::EnumGenerator
- Inherits:
-
TypeGeneratorBase
- Object
- Rails::Generators::Base
- TypeGeneratorBase
- Graphql::Generators::EnumGenerator
- Defined in:
- lib/generators/graphql/enum_generator.rb
Overview
Generate an interface type by name, with the specified fields.
rails g graphql:interface NamedEntityType name:String!
Instance Method Summary collapse
Methods inherited from TypeGeneratorBase
Instance Method Details
#create_type_file ⇒ Object
22 23 24 |
# File 'lib/generators/graphql/enum_generator.rb', line 22 def create_type_file template "enum.erb", "app/graphql/types/#{type_file_name}.rb" end |