Class: Upgrow::Generators::InputGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Helper
Defined in:
lib/generators/upgrow/input/input_generator.rb

Instance Method Summary collapse

Methods included from Helper

#class_name, included, #module_namespacing, #move_file, #namespace_content

Instance Method Details

#create_input_fileObject



10
11
12
13
14
15
# File 'lib/generators/upgrow/input/input_generator.rb', line 10

def create_input_file
  template(
    'input.rb',
    File.join('app/inputs', class_path, "#{file_name}_input.rb")
  )
end