module SvelteOnRails::Installer::HelloWorld

def self.remove_hello_world

def self.remove_hello_world
  utils = SvelteOnRails::Installer::Utils
  if utils.ask_yn('Remove the Hello World component?')
    files = %w[
      app/views/svelte_on_rails_hello_world/index.haml
      app/views/svelte_on_rails_hello_world
      app/controllers/svelte_on_rails_hello_world_controller.rb
      app/frontend/javascript/components/SvelteOnRailsHelloWorld.svelte
    ]
    utils.remove_files(files)
    utils.remove_line_from_file('config/routes.rb', 'svelte_on_rails_hello_world')
  end
end