Class: Gotenberg::Analyzers::Js
- Inherits:
-
Base
- Object
- Base
- Gotenberg::Analyzers::Js
show all
- Defined in:
- lib/gotenberg/analyzers/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
Instance Method Details
#assets ⇒ Object
15
16
17
|
# File 'lib/gotenberg/analyzers/js.rb', line 15
def assets
@assets ||= [[binary, filename]]
end
|
#tag ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/gotenberg/analyzers/js.rb', line 7
def tag
if resource[:inline]
'<script type="text/javascript">%s</script>' % binary
else
'<script src="%s"></script>' % filename
end
end
|