Class: Jekyll::Assets::HTML::Video

Inherits:
Jekyll::Assets::HTML show all
Defined in:
lib/jekyll/assets/plugins/html/vid.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/vid.rb', line 15

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