44件ヒット
[1-44件を表示]
(0.025秒)
キーワード
-
cgi
/ session (11) - rdoc (11)
- rss (11)
-
yaml
/ store (11)
検索結果
先頭4件
-
cgi
/ session (151.0) -
CGI のセッション管理を行うライブラリ。
...on['name'] = "value"
CGI::Session オブジェクトは Hash のようなもので、キーに対応する値を記録します。
デフォルトではプログラム終了時にセッション情報はファイルに記録されます。
=== 使い方 (セッション情報を得る)
name = s......ession['name']
別な CGI でこのセッション情報を取り出すときは、このようにします。
=== 使い方 (ヘッダ出力)
ヘッダ出力は CGI#out、CGI#header を使っている限り
通常通りで構いません。
cgi/session は内部的にクッキーを使用して......cgi.title {'Form Demo'} }
cgi.body {
cgi.form('action'=>"#{CGI.escapeHTML(cgi.script_name)}") {
cgi.p {
'あなたの名前は?' +
cgi.text_field('name') +
cgi.hidden('cmd', 'hello') +
cgi.submit('です。')
}... -
rdoc (85.0)
-
RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。
...ストールすれば、'rdoc' コマンドでドキュメントが生成できます。
(Windows では 'rdoc.bat' です)
$ rdoc [options] [names...]
"rdoc --help" と打てば、最新のオプションに関する情報が得られます。
$ rdoc
このコマンドでカレントディ......oc <options> [name...]
ファイルをパースし、そこに含まれている情報を集め、出力します。こうして
全ファイルに渡るクロスリファレンスが生成できます。 もし name がディレク
トリならば、その中を走査します。 name を指定し......ションを付けると、インラインで表示されます。
: --line-numbers
ソースコードに行番号を付けます。
: --main name
最初に表示されるページに置かれるもの(クラス、ファイルなど)を指定しま
す。もし、特定のファイル(例... -
rss (67.0)
-
RSS を扱うためのライブラリです。
...logo.png"
maker.textinput.title = "Search Example Site"
maker.textinput.description = "Search Example Site's all text"
maker.textinput.name = "keyword"
maker.textinput.link = "http://example.com/search.cgi"
end
===== XMLスタイルシートの指定
もし,
* http://exampl......logo.png"
maker.textinput.title = "Search Example Site"
maker.textinput.description = "Search Example Site's all text"
maker.textinput.name = "keyword"
maker.textinput.link = "http://example.com/search.cgi"
end
===== RSS 2.0の生成
もし,RSS 2.0を生成したい場合は......logo.png"
maker.textinput.title = "Search Example Site"
maker.textinput.description = "Search Example Site's all text"
maker.textinput.name = "keyword"
maker.textinput.link = "http://example.com/search.cgi"
end
===== RSS 0.91の生成
もし,RSS 0.91を生成したい場合は... -
yaml
/ store (55.0) -
RubyのオブジェクトをYAML形式の外部ファイルに格納するためのクラスです。
...クトをYAML形式の外部ファイルに格納するためのクラスです。
例:
require 'yaml/store'
Person = Struct.new :first_name, :last_name
people = [Person.new("Bob", "Smith"), Person.new("Mary", "Johnson")]
store = YAML::Store.new "test.store"
store.transaction do......] = { "hello" => "world" }
end
上記のコードを実行すると "test.store" は以下のようになります。
---
people:
- !ruby/struct:Person
first_name: Bob
last_name: Smith
- !ruby/struct:Person
first_name: Mary
last_name: Johnson
greeting:
hello: world...