Exception: Buff::Ignore::IgnoreFileNotFound

Inherits:
BuffIgnoreError show all
Defined in:
lib/buff/ignore/errors.rb

Overview

Raised when an ignore file cannot be found

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ IgnoreFileNotFound

Returns a new instance of IgnoreFileNotFound.

Parameters:

  • path (String)

    the path where the ignore file was not found



9
10
11
# File 'lib/buff/ignore/errors.rb', line 9

def initialize(path)
  @path = path
end

Instance Method Details

#to_sString

Returns:

  • (String)


14
15
16
17
18
# File 'lib/buff/ignore/errors.rb', line 14

def to_s
  "No ignore file found at '#{File.expand_path(@path)}'!"
rescue
  "No ignore file found at '#{@path}'!"
end