Exception: WeasyPDF::MissingLocalAsset

Inherits:
MissingAsset show all
Defined in:
lib/weasy_pdf.rb,
sig/weasy_pdf.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingLocalAsset

Returns a new instance of MissingLocalAsset.

Parameters:

  • path (String)


25
26
27
28
# File 'lib/weasy_pdf.rb', line 25

def initialize(path)
  @path = path
  super("Asset not found: '#{path}'")
end

Instance Attribute Details

#pathString (readonly)

Returns the value of attribute path.

Returns:

  • (String)


23
24
25
# File 'lib/weasy_pdf.rb', line 23

def path
  @path
end