Class: Redcarpet::Render::HTMLLazyImg::Lazy

Inherits:
Base
  • Object
show all
Defined in:
lib/redcarpet/render/html_lazy_img.rb

Instance Method Summary collapse

Instance Method Details

#image(link, _title, alt_text) ⇒ Object



20
21
22
# File 'lib/redcarpet/render/html_lazy_img.rb', line 20

def image(link, _title, alt_text)
  image_tag_with_loading_attr(loading: 'lazy', link: link, alt_text: alt_text)
end