Class: Gotenberg::Analyzers::ModuleJs

Inherits:
Base
  • Object
show all
Defined in:
lib/gotenberg/analyzers/module_js.rb

Constant Summary

Constants inherited from Base

Base::URI_REGEXP

Instance Attribute Summary

Attributes inherited from Base

#resource

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize

Constructor Details

This class inherits a constructor from Gotenberg::Analyzers::Base

Instance Method Details

#assetsObject



10
11
12
# File 'lib/gotenberg/analyzers/module_js.rb', line 10

def assets
  @assets ||= [[binary, filename]]
end

#tagObject



6
7
8
# File 'lib/gotenberg/analyzers/module_js.rb', line 6

def tag
  '<script type="module" src="%s"></script>' % filename
end