ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- PKK;]6`nnblockquote-i.rinu[U:RDoc::AnyMethod[iI"blockquote:ETI""CGI::HtmlExtension#blockquote;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"/Generate a BlockQuote element as a string.;To:RDoc::Markup::BlankLineo; ; [I"C+cite+ can either be a string, give the URI for the source of ;TI"Gthe quoted text, or a hash, giving all attributes of the element, ;TI"Gor it can be omitted, in which case the element has no attributes.;T@o; ; [I" "
Foo!
;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below00I";T[I"(cite = {});T@TI"HtmlExtension;TcRDoc::NormalModule00PKK;]Zʎ}} reset-i.rinu[U:RDoc::AnyMethod[iI" reset:ETI"CGI::HtmlExtension#reset;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"8Generate a reset button Input element, as a String.;To:RDoc::Markup::BlankLineo; ; [I"HThis resets the values on a form to their initial values. +value+ ;TI"Lis the text displayed on the button. +name+ is the name of this button.;T@o; ; [I">Alternatively, the attributes can be specified as a hash.;T@o:RDoc::Markup::Verbatim; [ I" reset ;TI" # ;TI" ;TI"reset("reset") ;TI", # ;TI" ;TI".reset("VALUE" => "reset", "ID" => "foo") ;TI"4 # ;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[I"(value = nil, name = nil);T@ FI"HtmlExtension;TcRDoc::NormalModule00PKK;]T33 caption-i.rinu[U:RDoc::AnyMethod[iI" caption:ETI"CGI::HtmlExtension#caption;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"2Generate a Table Caption element as a string.;To:RDoc::Markup::BlankLineo; ; [I"B+align+ can be a string, giving the alignment of the caption ;TI"@(one of top, bottom, left, or right). It can be a hash of ;TI">all the attributes of the element. Or it can be omitted.;T@o; ; [I"LThe body of the element is provided by the passed-in no-argument block.;T@o:RDoc::Markup::Verbatim; [I"*caption("left") { "Capital Cities" } ;TI"< # => Capital Cities;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below00I";T[I"(align = {});T@TI"HtmlExtension;TcRDoc::NormalModule00PKK;]c\%text_field-i.rinu[U:RDoc::AnyMethod[iI"text_field:ETI""CGI::HtmlExtension#text_field;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"6Generate a text field Input element, as a String.;To:RDoc::Markup::BlankLineo; ; [I"D+name+ is the name of the input field. +value+ is its initial ;TI"@value. +size+ is the size of the input area. +maxlength+ ;TI"-is the maximum length of input accepted.;T@o; ; [I">Alternatively, the attributes can be specified as a hash.;T@o:RDoc::Markup::Verbatim; [I"text_field("name") ;TI"3 # ;TI" ;TI"!text_field("name", "value") ;TI"A # ;TI" ;TI"%text_field("name", "value", 80) ;TI"A # ;TI" ;TI"*text_field("name", "value", 80, 200) ;TI"Q # ;TI" ;TI"6text_field("NAME" => "name", "VALUE" => "value") ;TI"6 # ;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[I"9(name = "", value = nil, size = 40, maxlength = nil);T@'FI"HtmlExtension;TcRDoc::NormalModule00PKK;]uWimage_button-i.rinu[U:RDoc::AnyMethod[iI"image_button:ETI"$CGI::HtmlExtension#image_button;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"8Generate an Image Button Input element as a string.;To:RDoc::Markup::BlankLineo; ; [I"B+src+ is the URL of the image to use for the button. +name+ ;TI"Eis the input name. +alt+ is the alternative text for the image.;T@o; ; [I">Alternatively, the attributes can be specified as a hash.;T@o:RDoc::Markup::Verbatim; [ I"image_button("url") ;TI"( # ;TI" ;TI"+image_button("url", "name", "string") ;TI"A # ;TI" ;TI"5image_button("SRC" => "url", "ALT" => "string") ;TI"4 # ;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[I"&(src = "", name = nil, alt = nil);T@ FI"HtmlExtension;TcRDoc::NormalModule00PKK;]*img-i.rinu[U:RDoc::AnyMethod[iI"img:ETI"CGI::HtmlExtension#img;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"+Generate an Image element as a string.;To:RDoc::Markup::BlankLineo; ; [I"G+src+ is the URL of the image. +alt+ is the alternative text for ;TI"Dthe image. +width+ is the width of the image, and +height+ is ;TI"its height.;T@o; ; [I">Alternatively, the attributes can be specified as a hash.;T@o:RDoc::Markup::Verbatim; [ I" img("src", "alt", 100, 50) ;TI"; # alt ;TI" ;TI"Iimg("SRC" => "src", "ALT" => "alt", "WIDTH" => 100, "HEIGHT" => 50) ;TI": # alt;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[I"4(src = "", alt = "", width = nil, height = nil);T@TI"HtmlExtension;TcRDoc::NormalModule00PKK;]] submit-i.rinu[U:RDoc::AnyMethod[iI" submit:ETI"CGI::HtmlExtension#submit;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"9Generate a submit button Input element, as a String.;To:RDoc::Markup::BlankLineo; ; [I"G+value+ is the text to display on the button. +name+ is the name ;TI"of the input.;T@o; ; [I">Alternatively, the attributes can be specified as a hash.;T@o:RDoc::Markup::Verbatim; [I" submit ;TI" # ;TI" ;TI"submit("ok") ;TI"* # ;TI" ;TI"submit("ok", "button1") ;TI"9 # ;TI" ;TI"Asubmit("VALUE" => "ok", "NAME" => "button1", "ID" => "foo") ;TI"A # ;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[I"(value = nil, name = nil);T@#FI"HtmlExtension;TcRDoc::NormalModule00PKK;].password_field-i.rinu[U:RDoc::AnyMethod[iI"password_field:ETI"&CGI::HtmlExtension#password_field;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"3Generate a Password Input element as a string.;To:RDoc::Markup::BlankLineo; ; [I"D+name+ is the name of the input field. +value+ is its default ;TI"Ivalue. +size+ is the size of the input field display. +maxlength+ ;TI"4is the maximum length of the inputted password.;T@o; ; [I":Alternatively, attributes can be specified as a hash.;T@o:RDoc::Markup::Verbatim; [I"password_field("name") ;TI"7 # ;TI" ;TI"%password_field("name", "value") ;TI"E # ;TI" ;TI"2password_field("password", "value", 80, 200) ;TI"U # ;TI" ;TI":password_field("NAME" => "name", "VALUE" => "value") ;TI": # ;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[I"9(name = "", value = nil, size = 40, maxlength = nil);T@$FI"HtmlExtension;TcRDoc::NormalModule00PKK;]3M7GGscrolling_list-i.rinu[U:RDoc::AnyMethod[iI"scrolling_list:ETI"&CGI::HtmlExtension#scrolling_list;TF: privateo:RDoc::Markup::Document: @parts[: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[I"(name = "", *values);T@ FI"HtmlExtension;TcRDoc::NormalModule0[I"CGI::HtmlExtension;TFI"popup_menu;TPKK;]m html-i.rinu[U:RDoc::AnyMethod[iI" html:ETI"CGI::HtmlExtension#html;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"3Generate a top-level HTML element as a string.;To:RDoc::Markup::BlankLineo; ; [ I"AThe attributes of the element are specified as a hash. The ;TI"Ipseudo-attribute "PRETTY" can be used to specify that the generated ;TI"HHTML string should be indented. "PRETTY" can also be specified as ;TI"Ia string as the sole argument to this method. The pseudo-attribute ;TI"F"DOCTYPE", if given, is used as the leading DOCTYPE SGML tag; it ;TI"Jshould include the entire text of this tag, including angle brackets.;T@o; ; [I"9The body of the html element is supplied as a block.;T@o:RDoc::Markup::Verbatim; [#I"html{ "string" } ;TI"T # string ;TI" ;TI"'html("LANG" => "ja") { "string" } ;TI"^ # string ;TI" ;TI"+html("DOCTYPE" => false) { "string" } ;TI" # string ;TI" ;TI"Vhtml("DOCTYPE" => '') { "string" } ;TI"K # string ;TI" ;TI"0html("PRETTY" => " ") { "" } ;TI"A # ;TI" # ;TI" # ;TI" # ;TI" # ;TI" ;TI"0html("PRETTY" => "\t") { "" } ;TI"A # ;TI" # ;TI" # ;TI" # ;TI" # ;TI" ;TI"(html("PRETTY") { "" } ;TI"6 # = html("PRETTY" => " ") { "" } ;TI" ;TI":html(if $VERBOSE then "PRETTY" end) { "HTML string" };T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below00I";T[I"(attributes = {});T@:TI"HtmlExtension;TcRDoc::NormalModule00PKK;] base-i.rinu[U:RDoc::AnyMethod[iI" base:ETI"CGI::HtmlExtension#base;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"6Generate a Document Base URI element as a String.;To:RDoc::Markup::BlankLineo; ; [I"E+href+ can either by a string, giving the base URL for the HREF ;TI"?attribute, or it can be a has of the element's attributes.;T@o; ; [I"0The passed-in no-argument block is ignored.;T@o:RDoc::Markup::Verbatim; [I"(base("http://www.example.com/cgi") ;TI"8 # => "";T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below00I";T[I"(href = "");T@TI"HtmlExtension;TcRDoc::NormalModule00PKK;]2Q checkbox-i.rinu[U:RDoc::AnyMethod[iI" checkbox:ETI" CGI::HtmlExtension#checkbox;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"3Generate a Checkbox Input element as a string.;To:RDoc::Markup::BlankLineo; ; [I"HThe attributes of the element can be specified as three arguments, ;TI"D+name+, +value+, and +checked+. +checked+ is a boolean value; ;TI"Dif true, the CHECKED attribute will be included in the element.;T@o; ; [I">Alternatively, the attributes can be specified as a hash.;T@o:RDoc::Markup::Verbatim; [ I"checkbox("name") ;TI"& # = checkbox("NAME" => "name") ;TI" ;TI"checkbox("name", "value") ;TI": # = checkbox("NAME" => "name", "VALUE" => "value") ;TI" ;TI"%checkbox("name", "value", true) ;TI"L # = checkbox("NAME" => "name", "VALUE" => "value", "CHECKED" => true);T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[I",(name = "", value = nil, checked = nil);T@!FI"HtmlExtension;TcRDoc::NormalModule00PKK;]:~$$cdesc-HtmlExtension.rinu[U:RDoc::NormalModule[iI"HtmlExtension:ETI"CGI::HtmlExtension;T0o:RDoc::Markup::Document: @parts[o;;[ o:RDoc::Markup::Paragraph;[I"4Mixin module providing HTML generation methods.;To:RDoc::Markup::BlankLineo; ;[I"For example,;To:RDoc::Markup::Verbatim;[I"3cgi.a("http://www.example.com") { "Example" } ;TI"= # => "Example" ;T: @format0o; ;[I"LModules Html3, Html4, etc., contain more basic HTML-generation methods ;TI"(+#title+, +#h1+, etc.).;T@o; ;[I"*See class CGI for a detailed example.;T: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[;[[;[[;[[I"a;TI"lib/cgi/html.rb;T[I" base;T@8[I"blockquote;T@8[I" caption;T@8[I" checkbox;T@8[I"checkbox_group;T@8[I"file_field;T@8[I" form;T@8[I" hidden;T@8[I" html;T@8[I"image_button;T@8[I"img;T@8[I"multipart_form;T@8[I"password_field;T@8[I"popup_menu;T@8[I"radio_button;T@8[I"radio_group;T@8[I" reset;T@8[I"scrolling_list;T@8[I" submit;T@8[I"text_field;T@8[I" textarea;T@8[[U:RDoc::Context::Section[i0o;;[; 0;0[I"lib/cgi/html.rb;TI"CGI;TcRDoc::NormalClassPKK;];pa-i.rinu[U:RDoc::AnyMethod[iI"a:ETI"CGI::HtmlExtension#a;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I",Generate an Anchor element as a string.;To:RDoc::Markup::BlankLineo; ; [I"3+href+ can either be a string, giving the URL ;TI"4for the HREF attribute, or it can be a hash of ;TI"the element's attributes.;T@o; ; [I"GThe body of the element is the string returned by the no-argument ;TI"block passed in.;T@o:RDoc::Markup::Verbatim; [ I"/a("http://www.example.com") { "Example" } ;TI"= # => "Example" ;TI" ;TI"Ma("HREF" => "http://www.example.com", "TARGET" => "_top") { "Example" } ;TI"L # => "Example";T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below00I";T[I"(href = "");T@TI"HtmlExtension;TcRDoc::NormalModule00PKK;]{Lradio_button-i.rinu[U:RDoc::AnyMethod[iI"radio_button:ETI"$CGI::HtmlExtension#radio_button;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I",Generates a radio-button Input element.;To:RDoc::Markup::BlankLineo; ; [I"E+name+ is the name of the input field. +value+ is the value of ;TI"Bthe field if checked. +checked+ specifies whether the field ;TI"starts off checked.;T@o; ; [I">Alternatively, the attributes can be specified as a hash.;T@o:RDoc::Markup::Verbatim; [ I"#radio_button("name", "value") ;TI"8 # ;TI" ;TI")radio_button("name", "value", true) ;TI"@ # ;TI" ;TI"Gradio_button("NAME" => "name", "VALUE" => "value", "ID" => "foo") ;TI"@ # ;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[I",(name = "", value = nil, checked = nil);T@!FI"HtmlExtension;TcRDoc::NormalModule00PKK;]YY form-i.rinu[U:RDoc::AnyMethod[iI" form:ETI"CGI::HtmlExtension#form;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I")Generate a Form element as a string.;To:RDoc::Markup::BlankLineo; ; [I"L+method+ should be either "get" or "post", and defaults to the latter. ;TI"B+action+ defaults to the current CGI script name. +enctype+ ;TI"5defaults to "application/x-www-form-urlencoded".;T@o; ; [I">Alternatively, the attributes can be specified as a hash.;T@o; ; [I"DSee also #multipart_form() for forms that include file uploads.;T@o:RDoc::Markup::Verbatim; [I"form{ "string" } ;TI"W #
string
;TI" ;TI"form("get") { "string" } ;TI"V #
string
;TI" ;TI"%form("get", "url") { "string" } ;TI"c #
string
;TI" ;TI"Cform("METHOD" => "post", "ENCTYPE" => "enctype") { "string" } ;TI"< #
string
;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below00I";T[I"[(method = "post", action = script_name, enctype = "application/x-www-form-urlencoded");T@'TI"HtmlExtension;TcRDoc::NormalModule00PKK;] u]d textarea-i.rinu[U:RDoc::AnyMethod[iI" textarea:ETI" CGI::HtmlExtension#textarea;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I".Generate a TextArea element, as a String.;To:RDoc::Markup::BlankLineo; ; [I"B+name+ is the name of the textarea. +cols+ is the number of ;TI"=columns and +rows+ is the number of rows in the display.;T@o; ; [I">Alternatively, the attributes can be specified as a hash.;T@o; ; [I" "name", "COLS" => 70, "ROWS" => 10) ;TI" ;TI"textarea("name", 40, 5) ;TI"A # = textarea("NAME" => "name", "COLS" => 40, "ROWS" => 5);T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below00I";T[I"&(name = "", cols = 70, rows = 10);T@ TI"HtmlExtension;TcRDoc::NormalModule00PKK;]ySmultipart_form-i.rinu[U:RDoc::AnyMethod[iI"multipart_form:ETI"&CGI::HtmlExtension#multipart_form;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"AGenerate a Form element with multipart encoding as a String.;To:RDoc::Markup::BlankLineo; ; [I"DMultipart encoding is used for forms that include file uploads.;T@o; ; [I"C+action+ is the action to perform. +enctype+ is the encoding ;TI"3type, which defaults to "multipart/form-data".;T@o; ; [I">Alternatively, the attributes can be specified as a hash.;T@o:RDoc::Markup::Verbatim; [ I" multipart_form{ "string" } ;TI"I #
string
;TI" ;TI"(multipart_form("url") { "string" } ;TI"U #
string
;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below00I";T[I"4(action = nil, enctype = "multipart/form-data");T@ FI"HtmlExtension;TcRDoc::NormalModule00PKK;]ʝ؉ popup_menu-i.rinu[U:RDoc::AnyMethod[iI"popup_menu:ETI""CGI::HtmlExtension#popup_menu;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"+Generate a Select element as a string.;To:RDoc::Markup::BlankLineo; ; [ I"K+name+ is the name of the element. The +values+ are the options that ;TI"Jcan be selected from the Select menu. Each value can be a String or ;TI"Ga one, two, or three-element Array. If a String or a one-element ;TI"MArray, this is both the value of that option and the text displayed for ;TI"Qit. If a three-element Array, the elements are the option value, displayed ;TI"Rtext, and a boolean value specifying whether this option starts as selected. ;TI"QThe two-element version omits either the option value (defaults to the same ;TI"Pas the display text) or the boolean selected specifier (defaults to false).;T@o; ; [I"JThe attributes and options can also be specified as a hash. In this ;TI"Kcase, options are specified as an array of values as described above, ;TI"#with the hash key of "VALUES".;T@o:RDoc::Markup::Verbatim; [!I"-popup_menu("name", "foo", "bar", "baz") ;TI" # ;TI" ;TI"7popup_menu("name", ["foo"], ["bar", true], "baz") ;TI" # ;TI" ;TI"Apopup_menu("name", ["1", "Foo"], ["2", "Bar", true], "Baz") ;TI" # ;TI" ;TI"Cpopup_menu("NAME" => "name", "SIZE" => 2, "MULTIPLE" => true, ;TI"H "VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"]) ;TI"0 # ;T: @format0: @fileI"lib/cgi/html.rb;T:0@omit_headings_from_table_of_contents_below000[[I"scrolling_list;To;; [;@<;0I"(name = "", *values);T@