Exception: Teapot::MissingTeapotError
- Inherits:
-
StandardError
- Object
- StandardError
- Teapot::MissingTeapotError
- Defined in:
- lib/teapot/loader.rb
Overview
Raised when a teapot file cannot be found.
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ MissingTeapotError
constructor
A new instance of MissingTeapotError.
Constructor Details
#initialize(path) ⇒ MissingTeapotError
Returns a new instance of MissingTeapotError.
41 42 43 |
# File 'lib/teapot/loader.rb', line 41 def initialize(path) super "Could not read file at #{path}!" end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
45 46 47 |
# File 'lib/teapot/loader.rb', line 45 def path @path end |