Exception: Coradoc::UnsafeIncludeError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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

#targetObject (readonly)

Returns the value of attribute target.



324
325
326
# File 'lib/coradoc/errors.rb', line 324

def target
  @target
end