Sha256: db4d2cf39dac7573940f9c3a5e99833133d7c13499ea5281f2fd437330f9aa42

Contents?: true

Size: 356 Bytes

Versions: 28

Compression:

Stored size: 356 Bytes

Contents

module PictureTag
  module OutputFormats
    # This is an odd class, which never returns itself. It selects the most
    # appropriate format, and returns an instance of that class.
    class Auto
      def self.new
        if PictureTag::Utils.count_srcsets > 1
          Picture.new
        else
          Img.new
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
jekyll_picture_tag-1.6.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.5.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.4.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll-4-picture-tag-1.0.1 lib/jekyll-4-picture-tag/output_formats/auto.rb
jekyll-picture-tag-latest-1.3.1 lib/jekyll-picture-tag-latest/output_formats/auto.rb
jekyll-picture-tag-latest-1.3.0 lib/jekyll-picture-tag/output_formats/auto.rb
jekyll-4-picture-tag-1.0.0 lib/jekyll-4-picture-tag/output_formats/auto.rb
jekyll_picture_tag-1.2.0 lib/jekyll_picture_tag/output_formats/auto.rb