Sha256: 0e510fd709d654f695134b6102f3462940053f54d14a3b77898e88afdfdb52c4

Contents?: true

Size: 223 Bytes

Versions: 5

Compression:

Stored size: 223 Bytes

Contents

module Convert
  module Converters

    # Convert image to img html tag
    def image_tag(src, options = {})
      options = {:alt => ''}.merge(options)
      %{<img src="#{src}" alt="#{options[:alt]}">}
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
convert-0.1.7 lib/converters/image_tag.rb
convert-0.1.6 lib/converters/image_tag.rb
convert-0.1.5 lib/converters/image_tag.rb
convert-0.1.4 lib/converters/image_tag.rb
convert-0.1.3 lib/converters/image_tag.rb