Class: Gotenberg::Analyzers::Js
- Defined in:
- lib/gotenberg/analyzers/js.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Gotenberg::Analyzers::Base
Instance Method Details
#tag ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/gotenberg/analyzers/js.rb', line 8 def tag if resource[:inline] '<script type="text/javascript">%s</script>' % binary else '<script src="%s"></script>' % filename end end |