144件ヒット
[101-144件を表示]
(0.017秒)
別のキーワード
種類
- インスタンスメソッド (48)
- 文書 (48)
- ライブラリ (36)
- クラス (12)
ライブラリ
-
rexml
/ document (36) -
rexml
/ streamlistener (12) -
webrick
/ httputils (12)
クラス
モジュール
キーワード
- Instruction (12)
- [] (12)
- cgi (12)
- entitydecl (12)
- open-uri (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) - target (12)
-
webrick
/ cgi (12) - 正規表現 (12)
検索結果
先頭4件
-
open-uri (18.0)
-
http/ftp に簡単にアクセスするためのクラスです。 Kernel.#open を再定義します。
...ng.org/en") {|f|
f.each_line {|line| p line}
p f.base_uri # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/>
p f.content_type # "text/html"
p f.charset # "iso-8859-1"
p f.content_encoding # []
p f.last_modified # Thu Dec 05 02:45:02 UTC 2002
}... -
REXML
:: Instruction (12.0) -
XML 処理命令(XML Processing Instruction, XML PI)を表すクラス。
..., XML PI)を表すクラス。
XML 処理命令 とは XML 文書中の <? と ?> で挟まれた部分のことで、
アプリケーションへの指示を保持するために使われます。
XML 宣言(文書先頭の <?xml version=... ?>)はXML処理命令ではありませんが、
似た......equire 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
//}... -
REXML
:: Instruction # target -> String (12.0) -
XML 処理命令のターゲットを返します。
...equire 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
//}... -
WEBrick
:: HTTPUtils :: FormData # [](header) -> String | nil (12.0) -
自身が multipart/form-data なデータの場合に、header で指定された ヘッダの値を文字列で返します。無ければ nil を返します。
...nil を返します。
@param header ヘッダ名を文字列で指定します。大文字と小文字を区別しません。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q']['content-type'] #=> "plain/text"
end
end
MyCGI.new.start()...