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.
326 327 328 329 |
# File 'lib/coradoc/errors.rb', line 326 def initialize(target) @target = target super("Unsafe include path blocked: #{target}") end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
324 325 326 |
# File 'lib/coradoc/errors.rb', line 324 def target @target end |