Exception: Curly::PresenterNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/curly/presenter_not_found.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ PresenterNotFound

Returns a new instance of PresenterNotFound


7
8
9
# File 'lib/curly/presenter_not_found.rb', line 7

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path


5
6
7
# File 'lib/curly/presenter_not_found.rb', line 5

def path
  @path
end

Instance Method Details

#messageObject


11
12
13
# File 'lib/curly/presenter_not_found.rb', line 11

def message
  "error compiling `#{path}`: could not find #{presenter_class_name}"
end