class Jekyll::Assets::HTML::SVG
Public Class Methods
for?(type:, args:)
click to toggle source
–
Calls superclass method
Jekyll::Assets::Extensible::for?
# File lib/jekyll/assets/plugins/html/svg.rb, line 27 def self.for?(type:, args:) return false unless super return false unless args.key?(:inline) && !args.key?(:srcset) true end
wants_xml?()
click to toggle source
–
# File lib/jekyll/assets/plugins/html/svg.rb, line 22 def self.wants_xml? true end
Public Instance Methods
run()
click to toggle source
–
# File lib/jekyll/assets/plugins/html/svg.rb, line 14 def run arg = @args.to_h(html: true) arg.each do |k, v| @doc.set_attribute(k, v) end end