Exception: Buff::Ignore::IgnoreFileNotFound
- Inherits:
-
BuffIgnoreError
- Object
- StandardError
- BuffIgnoreError
- Buff::Ignore::IgnoreFileNotFound
- Defined in:
- lib/buff/ignore/errors.rb
Overview
Raised when an ignore file cannot be found
Instance Method Summary collapse
-
#initialize(path) ⇒ IgnoreFileNotFound
constructor
A new instance of IgnoreFileNotFound.
- #to_s ⇒ String
Constructor Details
#initialize(path) ⇒ IgnoreFileNotFound
Returns a new instance of IgnoreFileNotFound.
9 10 11 |
# File 'lib/buff/ignore/errors.rb', line 9 def initialize(path) @path = path end |
Instance Method Details
#to_s ⇒ String
14 15 16 17 18 |
# File 'lib/buff/ignore/errors.rb', line 14 def to_s "No ignore file found at '#{File.(@path)}'!" rescue "No ignore file found at '#{@path}'!" end |