Exception: Fox::FoxfileNotFound
- Defined in:
- lib/fox/error/errors.rb
Instance Method Summary collapse
-
#initialize(filepath) ⇒ FoxfileNotFound
constructor
A new instance of FoxfileNotFound.
- #to_s ⇒ Object
Methods inherited from FoxError
Constructor Details
#initialize(filepath) ⇒ FoxfileNotFound
Returns a new instance of FoxfileNotFound.
31 32 33 |
# File 'lib/fox/error/errors.rb', line 31 def initialize(filepath) @filepath = File.dirname(File.(filepath)) rescue filepath end |
Instance Method Details
#to_s ⇒ Object
35 36 37 |
# File 'lib/fox/error/errors.rb', line 35 def to_s "No Foxfile or Foxfile.lock found at '#{@filepath}'!" end |