Exception: Ellipses::Support::SanitizePath::Sanitizer::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ellipses/support/sanitize_path.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Error

Returns a new instance of Error.



12
13
14
# File 'lib/ellipses/support/sanitize_path.rb', line 12

def initialize(path)
  super("#{kind}: #{path}")
end

Class Method Details

.kind(message) ⇒ Object



16
17
18
19
20
# File 'lib/ellipses/support/sanitize_path.rb', line 16

def self.kind(message)
  Class.new self do
    define_method(:kind) { message }
  end
end