Current File : //proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/CGI/HtmlExtension/img-i.yaml |
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Generate an Image element as a string.
- !ruby/struct:SM::Flow::P
body: <tt>src</tt> is the URL of the image. <tt>alt</tt> is the alternative text for the image. <tt>width</tt> is the width of the image, and <tt>height</tt> is its height.
- !ruby/struct:SM::Flow::P
body: Alternatively, the attributes can be specified as a hash.
- !ruby/struct:SM::Flow::VERB
body: " img("src", "alt", 100, 50)\n # <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50">\n\n img("SRC" => "src", "ALT" => "alt", "WIDTH" => 100, "HEIGHT" => 50)\n # <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50">\n"
full_name: CGI::HtmlExtension#img
is_singleton: false
name: img
params: (src = "", alt = "", width = nil, height = nil)
visibility: public