Class: AwesomeSpawn::NoSuchFileError
- Inherits:
-
Errno::ENOENT
- Object
- Errno::ENOENT
- AwesomeSpawn::NoSuchFileError
- Defined in:
- lib/awesome_spawn/no_such_file_error.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message) ⇒ NoSuchFileError
constructor
A new instance of NoSuchFileError.
Constructor Details
#initialize(message) ⇒ NoSuchFileError
Returns a new instance of NoSuchFileError.
3 4 5 |
# File 'lib/awesome_spawn/no_such_file_error.rb', line 3 def initialize() super(.split("No such file or directory -").last.split(" ").first) end |
Class Method Details
.detected?(message) ⇒ Boolean
7 8 9 |
# File 'lib/awesome_spawn/no_such_file_error.rb', line 7 def self.detected?() .start_with?("No such file or directory -") end |