Class: PictureTag::OutputFormats::NakedSrcset
- 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
Instance Method Details
#to_s ⇒ Object
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 |