class Dry::Files::MissingTargetError

File manipulations error. Raised when the given `target` cannot be found in `path`.

@since 0.1.0 @api public

Public Class Methods

new(target, path) click to toggle source

@param target [String,Regexp] the missing target @param path [String,Pathname] the file

@return [Dry::Files::MissingTargetError] the new error

@since 0.1.0 @api private

Calls superclass method
# File lib/dry/files/error.rb, line 56
def initialize(target, path)
  super("cannot find `#{target}' in `#{path}'")

  @_target = target
  @_path = path
end

Public Instance Methods

path() click to toggle source

The missing target

@return [String,Pathname] the file

@since 0.1.0 @api public

# File lib/dry/files/error.rb, line 79
def path
  @_path
end
target() click to toggle source

The missing target

@return [String, Regexp] the missing target

@since 0.1.0 @api public

# File lib/dry/files/error.rb, line 69
def target
  @_target
end