class EmbedRb::BasicImage
Public Class Methods
new(input, output, options, embeds)
click to toggle source
# File lib/embedrb/image/embed_images.rb, line 8 def initialize(input, output, options, embeds) @input = input @output = output @embeds = embeds @options = options @regex = /((?:https?):\/\/\S*\.(?:gif|jpg|jpeg|tiff|png|svg|webp))/mi @service = :image end
Private Instance Methods
render(url)
click to toggle source
# File lib/embedrb/image/embed_images.rb, line 18 def render(url) return <<EOF <div class="ejs-image ejs-embed"> <div class="ne-image-wrapper"> <img src="#{url}"/> </div> </div> EOF end