Exception: MetaPresenter::Builder::FileExistsButPresenterNotDefinedError

Inherits:
NameError
  • Object
show all
Defined in:
lib/meta_presenter/builder.rb

Overview

Error when there’s no presenter class defined but a file for it exists

Instance Method Summary collapse

Constructor Details

#initialize(presenter_class_name, presenter_file_path) ⇒ FileExistsButPresenterNotDefinedError

Create a new error

Parameters:

  • presenter_class_name (String)

    Class name of presenter

  • presenter_file_path (String)

    File path where the presenter Ruby class was found at



27
28
29
# File 'lib/meta_presenter/builder.rb', line 27

def initialize(presenter_class_name, presenter_file_path)
  super("Presenter class #{presenter_class_name} is not defined but file exists at #{presenter_file_path}")
end