Class: Jekyll::Assets::HTML::CSS
- Inherits:
-
Jekyll::Assets::HTML
- Object
- Extensible
- Jekyll::Assets::HTML
- Jekyll::Assets::HTML::CSS
- Defined in:
- lib/jekyll/assets/plugins/html/css.rb
Instance Attribute Summary
Attributes inherited from Jekyll::Assets::HTML
Attributes inherited from Extensible
#args, #asset, #ctx, #env, #jekyll
Instance Method Summary collapse
Methods inherited from Jekyll::Assets::HTML
build, #initialize, make_doc, skips, wants_xml?
Methods inherited from Extensible
for?, for_args?, for_type?, inherited, #initialize, internal!, internal?, requirements
Constructor Details
This class inherits a constructor from Jekyll::Assets::HTML
Instance Method Details
#run ⇒ Object
–
15 16 17 18 19 20 21 |
# File 'lib/jekyll/assets/plugins/html/css.rb', line 15 def run Nokogiri::HTML::Builder.with(@doc) do |d| attr = @args.to_h(html: true, skip: HTML.skips) d.style(asset.to_s, attr) if @args[:inline] d.link(attr) unless @args[:inline] end end |