관리-도구
편집 파일: html-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: "" comment: - !ruby/struct:SM::Flow::P body: Generate a top-level HTML element as a string. - !ruby/struct:SM::Flow::P body: The attributes of the element are specified as a hash. The pseudo-attribute "PRETTY" can be used to specify that the generated HTML string should be indented. "PRETTY" can also be specified as a string as the sole argument to this method. The pseudo-attribute "DOCTYPE", if given, is used as the leading DOCTYPE SGML tag; it should include the entire text of this tag, including angle brackets. - !ruby/struct:SM::Flow::P body: The body of the html element is supplied as a block. - !ruby/struct:SM::Flow::VERB body: " html{ "string" }\n # <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML>string</HTML>\n\n html("LANG" => "ja") { "string" }\n # <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML LANG="ja">string</HTML>\n\n html("DOCTYPE" => false) { "string" }\n # <HTML>string</HTML>\n\n html("DOCTYPE" => '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">') { "string" }\n # <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML>string</HTML>\n\n html("PRETTY" => " ") { "<BODY></BODY>" }\n # <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n # <HTML>\n # <BODY>\n # </BODY>\n # </HTML>\n\n html("PRETTY" => "\\t") { "<BODY></BODY>" }\n # <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n # <HTML>\n # <BODY>\n # </BODY>\n # </HTML>\n\n html("PRETTY") { "<BODY></BODY>" }\n # = html("PRETTY" => " ") { "<BODY></BODY>" }\n\n html(if $VERBOSE then "PRETTY" end) { "HTML string" }\n" full_name: CGI::HtmlExtension#html is_singleton: false name: html params: (attributes = {}) {|| ...} visibility: public