Class: PictureTag::OutputFormats::DataAuto
- Defined in:
- lib/jekyll-4-picture-tag/output_formats/data_auto.rb
Overview
Similar to Auto, but sets data-src (and so on) instead of src
Class Method Summary collapse
Class Method Details
.new ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/jekyll-4-picture-tag/output_formats/data_auto.rb', line 5 def self.new if PictureTag::Utils.count_srcsets > 1 DataPicture.new else DataImg.new end end |