Class: Vaulty::EmptyPath

Inherits:
GLI::CustomExit
  • Object
show all
Defined in:
lib/vaulty.rb

Overview

This error is raised when we try to show / operate on a path that does not contain anything

See Also:

  • GLI::CustomExit

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ EmptyPath

Returns a new instance of EmptyPath.

Parameters:

  • path (String)


36
37
38
# File 'lib/vaulty.rb', line 36

def initialize(path)
  super("Path #{path.inspect} contains nothing", -1)
end