Exception: Staticky::Files::MissingTargetError
- Defined in:
- lib/staticky/files/error.rb
Overview
File manipulations error. Raised when the given ‘target` cannot be found in `path`.
Instance Method Summary collapse
-
#initialize(target, path) ⇒ Staticky::Files::MissingTargetError
constructor
The new error.
-
#path ⇒ String, Pathname
The missing target.
-
#target ⇒ String, Regexp
The missing target.
Constructor Details
#initialize(target, path) ⇒ Staticky::Files::MissingTargetError
Returns the new error.
38 39 40 41 42 43 |
# File 'lib/staticky/files/error.rb', line 38 def initialize(target, path) super("cannot find `#{target}' in `#{path}'") @_target = target @_path = path end |
Instance Method Details
#path ⇒ String, Pathname
The missing target
55 56 57 |
# File 'lib/staticky/files/error.rb', line 55 def path @_path end |
#target ⇒ String, Regexp
The missing target
48 49 50 |
# File 'lib/staticky/files/error.rb', line 48 def target @_target end |