Exception: Curlybars::Error::Presenter::NotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/curlybars/error/presenter/not_found.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ NotFound

Returns a new instance of NotFound.



7
8
9
# File 'lib/curlybars/error/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/curlybars/error/presenter/not_found.rb', line 5

def path
  @path
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/curlybars/error/presenter/not_found.rb', line 11

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