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-2.1.2 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-2.1.1 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-2.1.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-2.0.4 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-2.0.3 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-2.0.2 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-2.0.1 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-2.0.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-2.0.0pre1 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.14.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.13.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.12.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.11.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.10.2 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.10.1 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.10.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.9.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.8.0 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.7.1 lib/jekyll_picture_tag/output_formats/auto.rb
jekyll_picture_tag-1.7.0 lib/jekyll_picture_tag/output_formats/auto.rb