Exception: Uniword::FileNotFoundError
- Defined in:
- lib/uniword/errors.rb
Overview
Raised when a file is not found
Instance Attribute Summary collapse
-
#path ⇒ String
readonly
The file path.
Instance Method Summary collapse
-
#initialize(path) ⇒ FileNotFoundError
constructor
A new instance of FileNotFoundError.
Constructor Details
#initialize(path) ⇒ FileNotFoundError
Returns a new instance of FileNotFoundError.
10 11 12 13 |
# File 'lib/uniword/errors.rb', line 10 def initialize(path) super("File not found: #{path}") @path = path end |
Instance Attribute Details
#path ⇒ String (readonly)
Returns The file path.
16 17 18 |
# File 'lib/uniword/errors.rb', line 16 def path @path end |