Class: Gotenberg::Analyzers::Css

Inherits:
Base
  • Object
show all
Defined in:
lib/gotenberg/analyzers/css.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

#assets, #initialize

Constructor Details

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

Instance Method Details

#tagObject



8
9
10
11
12
13
14
# File 'lib/gotenberg/analyzers/css.rb', line 8

def tag
  if resource[:inline]
    '<style type="text/css">%s</style>' % binary
  else
    '<link rel="stylesheet" href="%s" />' % filename
  end
end