Sha256: 812512e0cdcdaf8c6966f3fdb350ce3bdc5efa8c175261f999653a5b29d2db6f
Contents?: true
Size: 677 Bytes
Versions: 6
Compression:
Stored size: 677 Bytes
Contents
# Frozen-string-literal: true # Copyright: 2012 - 2017 - MIT License # Encoding: utf-8 require "jekyll/assets" module Jekyll module Assets class HTML class SVG < HTML content_types "image/svg+xml" # -- def run arg = @args.to_h(html: true) arg.each do |k, v| @doc.set_attribute(k, v) end end # -- def self.wants_xml? true end # -- def self.for?(type:, args:) return false unless super return false unless args.key?(:inline) && !args.key?(:srcset) true end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems