class BasicPresenter::Generators::InstallGenerator

Public Instance Methods

create_presenter_file() click to toggle source
# File lib/generators/basic_presenter/install_generator.rb, line 4
      def create_presenter_file
        create_file "app/presenters/application_presenter.rb", <<~FILE
          class ApplicationPresenter < BasicPresenter::BasePresenter
            ## Shared Methods might come here
          end
        FILE
      end