Exception: Cotta::FileNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- Cotta::FileNotFoundError
- Defined in:
- lib/cotta/file_not_found_error.rb
Instance Attribute Summary collapse
-
#pathname ⇒ Object
readonly
Returns the value of attribute pathname.
Instance Method Summary collapse
-
#initialize(pathname) ⇒ FileNotFoundError
constructor
A new instance of FileNotFoundError.
- #message ⇒ Object
Constructor Details
#initialize(pathname) ⇒ FileNotFoundError
Returns a new instance of FileNotFoundError.
5 6 7 |
# File 'lib/cotta/file_not_found_error.rb', line 5 def initialize(pathname) @pathname = pathname end |
Instance Attribute Details
#pathname ⇒ Object (readonly)
Returns the value of attribute pathname.
3 4 5 |
# File 'lib/cotta/file_not_found_error.rb', line 3 def pathname @pathname end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/cotta/file_not_found_error.rb', line 9 def "file not found: #{pathname}" end |