Class: Graphql::Generators::FunctionGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
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_fileObject


13
14
15
# File 'lib/generators/graphql/function_generator.rb', line 13

def create_function_file
  template "function.erb", "#{options[:directory]}/functions/#{file_path}.rb"
end