class Rails::Generators::ScriptGenerator
Inherits From
Public instance methods
Source code GitHub
# File railties/lib/rails/generators/rails/script/script_generator.rb, line 8
def generate_script
template("script.rb.tt", "script/#{file_path}.rb")
end