Module: Generator::Config

Defined in:
lib/generator/config.rb

Constant Summary collapse

BASE_PATH =
File.expand_path("../..", __dir__ || raise("__dir__ is nil"))
GENERATED_FILE_NOTICE =
"This file is generated. Do not edit."

Class Method Summary collapse

Class Method Details

.template_path(template_name) ⇒ Object



19
20
21
22
# File 'lib/generator/config.rb', line 19

def template_path(template_name)
  # RBS templates are in templates/rbs/, Ruby templates are in templates/
  File.join(BASE_PATH, "lib/generator/templates/#{template_name}.erb")
end