Sha256: 9929a54ca4cfe4620cf51628deaacc1fd494ea12714f37511e0c812ba5750a40
Contents?: true
Size: 460 Bytes
Versions: 20
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true require "rails/generators/named_base" require_relative "core" module Graphql module Generators class FunctionGenerator < Rails::Generators::NamedBase include Core desc "Create a GraphQL::Function by name" source_root File.expand_path('../templates', __FILE__) def create_function_file template "function.erb", "#{options[:directory]}/functions/#{file_path}.rb" end end end end
Version data entries
20 entries across 20 versions & 1 rubygems