Class: Graphql::Generators::FunctionGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Graphql::Generators::FunctionGenerator
- Includes:
- Core
- Defined in:
- lib/generators/graphql/function_generator.rb
Instance Method Summary collapse
Methods included from Core
#create_dir, #create_mutation_root_type, #insert_root_type, #schema_file_path
Instance Method Details
#create_function_file ⇒ Object
13 14 15 |
# File 'lib/generators/graphql/function_generator.rb', line 13 def create_function_file template "function.erb", "#{[:directory]}/functions/#{file_path}.rb" end |