Class: Graphql::Generators::FunctionGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/graphql/function_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_function_fileObject



10
11
12
# File 'lib/generators/graphql/function_generator.rb', line 10

def create_function_file
  template "function.erb", "app/graphql/functions/#{file_name}.rb"
end