Exception: Rehab::MissingPartialError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rehab/missing_partial_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingPartialError

Returns a new instance of MissingPartialError.



7
8
9
# File 'lib/rehab/missing_partial_error.rb', line 7

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/rehab/missing_partial_error.rb', line 4

def path
  @path
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/rehab/missing_partial_error.rb', line 12

def message
  "Could not find #{path}"
end