Class: Redcarpet::Render::HTMLLazyImg::Eager

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



32
33
34
# File 'lib/redcarpet/render/html_lazy_img.rb', line 32

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