Flowdock
method

img

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: CGI::HtmlExtension
img(src = "", alt = "", width = nil, height = nil) public

Generate an Image element as a string.

src is the URL of the image. alt is the alternative text for the image. width is the width of the image, and height is its height.

Alternatively, the attributes can be specified as a hash.

img("src", "alt", 100, 50)
  # <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50">

img("SRC" => "src", "ALT" => "alt", "WIDTH" => 100, "HEIGHT" => 50)
  # <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50">
Show source
Register or log in to add new notes.