Class: PictureTag::OutputFormats::Auto
- Inherits:
-
Object
- Object
- PictureTag::OutputFormats::Auto
- Defined in:
- lib/jekyll-4-picture-tag/output_formats/auto.rb
Overview
This is an odd class, which never returns itself. It selects the most appropriate format, and returns an instance of that class.
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.new ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/jekyll-4-picture-tag/output_formats/auto.rb', line 6 def self.new if PictureTag::Utils.count_srcsets > 1 Picture.new else Img.new end end |