Exception: Dry::Files::MissingTargetError
- Defined in:
- lib/dry/files/error.rb
Overview
File manipulations error. Raised when the given ‘target` cannot be found in `path`.
Instance Method Summary collapse
-
#initialize(target, path) ⇒ Dry::Files::MissingTargetError
constructor
private
The new error.
-
#path ⇒ String, Pathname
The missing target.
-
#target ⇒ String, Regexp
The missing target.
Constructor Details
#initialize(target, path) ⇒ Dry::Files::MissingTargetError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the new error.
56 57 58 59 60 61 |
# File 'lib/dry/files/error.rb', line 56 def initialize(target, path) super("cannot find `#{target}' in `#{path}'") @_target = target @_path = path end |
Instance Method Details
#path ⇒ String, Pathname
The missing target
79 80 81 |
# File 'lib/dry/files/error.rb', line 79 def path @_path end |
#target ⇒ String, Regexp
The missing target
69 70 71 |
# File 'lib/dry/files/error.rb', line 69 def target @_target end |