Exception: Cotta::FileNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cotta/file_not_found_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathnameObject (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

#messageObject



9
10
11
# File 'lib/cotta/file_not_found_error.rb', line 9

def message
  "file not found: #{pathname}"
end