Exception: Coradoc::UnsafeIncludeError
- Defined in:
- lib/coradoc/errors.rb
Overview
Error raised when an include target escapes the resolver's safe base
directory and allow_unsafe_includes is not set.
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target) ⇒ UnsafeIncludeError
constructor
A new instance of UnsafeIncludeError.
Constructor Details
#initialize(target) ⇒ UnsafeIncludeError
Returns a new instance of UnsafeIncludeError.
345 346 347 348 |
# File 'lib/coradoc/errors.rb', line 345 def initialize(target) @target = target super("Unsafe include path blocked: #{target}") end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
343 344 345 |
# File 'lib/coradoc/errors.rb', line 343 def target @target end |