Class: Jekyll::Assets::HTML::Component

Inherits:
Jekyll::Assets::HTML show all
Defined in:
lib/jekyll/assets/plugins/html/component.rb

Instance Attribute Summary

Attributes inherited from Jekyll::Assets::HTML

#doc

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

#runObject



15
16
17
18
19
20
21
# File 'lib/jekyll/assets/plugins/html/component.rb', line 15

def run
  Nokogiri::HTML::Builder.with(doc) do |d|
    d.link args.to_h({
      html: true, skip: HTML.skips
    })
  end
end