Class: PictureTag::OutputFormats::NakedSrcset

Inherits:
Basic
  • Object
show all
Defined in:
lib/jekyll_picture_tag/output_formats/naked_srcset.rb

Overview

Returns only a srcset attribute, for more custom or complicated markup.

Instance Method Summary collapse

Methods inherited from Basic

#build_base_img

Instance Method Details

#to_sObject



5
6
7
8
9
10
# File 'lib/jekyll_picture_tag/output_formats/naked_srcset.rb', line 5

def to_s
  image = PictureTag.source_images.first
  format = PictureTag.formats.first

  build_srcset(image, format).to_s
end