433件ヒット
[1-100件を表示]
(0.014秒)
キーワード
- cgi (12)
- debug (12)
- getoptlong (12)
-
net
/ http (12) - pp (12)
- rake (12)
-
rdoc
/ require (12) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / cert _ command (12) -
rubygems
/ commands / check _ command (12) -
rubygems
/ commands / cleanup _ command (12) -
rubygems
/ commands / contents _ command (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / environment _ command (12) -
rubygems
/ commands / fetch _ command (12) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / help _ command (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / list _ command (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / mirror _ command (12) -
rubygems
/ commands / outdated _ command (12) -
rubygems
/ commands / pristine _ command (12) -
rubygems
/ commands / query _ command (12) -
rubygems
/ commands / rdoc _ command (12) -
rubygems
/ commands / search _ command (12) -
rubygems
/ commands / server _ command (12) -
rubygems
/ commands / sources _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ commands / uninstall _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ custom _ require (12) -
rubygems
/ require _ paths _ builder (12) -
rubygems
/ requirement (12) -
test
/ unit (1) -
webrick
/ cgi (12) -
webrick
/ httprequest (12)
検索結果
先頭5件
-
rubygems
/ commands / query _ command (6007.0) -
Gem パッケージの情報を検索するためのライブラリです。
...ジの情報を検索するためのライブラリです。
Usage: gem query [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION Specify version of gem to query
-n, --name-matches REGEXP 与えられた正規表現にマ......p このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定ファイルを使用します... -
rdoc
/ require (6001.0) -
RDoc::Require を定義するサブライブラリです。
...RDoc::Require を定義するサブライブラリです。... -
rubygems
/ custom _ require (6001.0) -
Kernel#require を再定義するためのライブラリです。
...Kernel#require を再定義するためのライブラリです。
Ruby1.9 以前で使用しています。... -
rubygems
/ require _ paths _ builder (6001.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成するための モジュールを提供するためのライブラリです。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成するための
モジュールを提供するためのライブラリです。... -
rubygems
/ requirement (6001.0) -
Gem パッケージのバージョンに関する必須条件を扱うためのライブラリです。
Gem パッケージのバージョンに関する必須条件を扱うためのライブラリです。 -
webrick
/ httprequest (6001.0) -
HTTP リクエストのためのクラスを提供するライブラリです。
HTTP リクエストのためのクラスを提供するライブラリです。 -
pp (91.0)
-
オブジェクトなどを見やすく出力するためのライブラリです。
...オブジェクトなどを見やすく出力するためのライブラリです。
このライブラリを require すると Kernel.#pp が定義されます。
Kernel.#p のかわりに Kernel.#pp を使うことにより、
適切にインデントと改行された分かりやすい出力を......[ruby]{
require 'pp'
class Hash
def pretty_print(q)
q.group(2, "<hash>") do
q.breakable
first = true
self.each{|k, v|
unless first
q.text(',')
q.breakable
end
q.pp k
q.text ' => '
q.group(1) do
q.breakable......if v.is_a?(String) and v.size > 10
q.pp(v[0..9] + '...')
else
q.pp v
end
end
first = false
}
end
q.breakable
q.text "</hash>"
end
def pretty_print_cycle(q)
q.text(empty? ? '{}' : '{...}')
end
end
h =......class Hash
def pretty_print(q)
q.group(2, "<hash>") do
q.breakable
first = true
self.each{|k, v|
unless first
q.text(',')
q.breakable
end
q.pp k
q.text ' => '
q.group(1) do
q.breakable ''
if v.is......ring) and v.size > 10
q.pp(v[0..9] + '...')
else
q.pp v
end
end
first = false
}
end
q.breakable
q.text "</hash>"
end
def pretty_print_cycle(q)
q.text(empty? ? '{}' : '{...}')
end
end
h = {:a => 'a'*5, :b => 'b'... -
getoptlong (19.0)
-
getoptlong は、GNU の getopt_long() とまったく同じ方式でコマンド 行オプションの解析を行う Ruby のライブラリです。
...() および getoptlong.rb には、`REQUIRE_ORDER',
`PERMUTE', `RETURN_IN_ORDER' という、3 つの「順序形式」が用
意されています。それぞれの処理形式は、非オプション引数についての扱い方
が異なります。
* REQUIRE_ORDER:
非オプション引......、REQUIRE_ORDER 形式で処理されます。
=== 使い方
あなたの作ったプログラムのヘルプメッセージが、次のようになっているもの
とします。
Usage: command [option...]
Options:
-m SIZE --max-size SIZE Set maximum size
-q --quiet......Output version number, then exit
まず、`getoptlong.rb' を Ruby で書かれたあなたのプログラムに取り込みま
す。
require 'getoptlong'
getoptlong はクラスを提供します。
クラスの名前は GetoptLong です。
GetoptLong クラスのオブジェクト... -
webrick
/ cgi (13.0) -
一般の CGI 環境で webrick ライブラリのサーブレットと同じように CGI スクリプトを書くための ライブラリです。サーバが WEBrick でなくても使うことが出来ます。
...呼び出します。このようにしてスクリプトは実行されます。
例:
#!/usr/local/bin/ruby
require 'webrick/cgi'
class MyCGI < WEBrick::CGI
def do_GET(req, res)
res["content-type"] = "text/plain"
ret = "hoge\n"
res.body = ret
end
end
MyCGI.new.start()......ライアントからのリクエストに含まれる Entity Body の読み込みは
まだ行われていません。WEBrick::HTTPRequest#query, WEBrick::HTTPRequest#body などの
メソッドが読ばれた時点で読み込みが行われます。クライアントから巨大なデータが送......す WEBrick::HTTPRequest オブジェクトです。
第二引数は、クライアントへのレスポンスを表す WEBrick::HTTPResponse オブジェクトです。
==== フォームフィールドの値を得る
フォームフィールドの値は WEBrick::HTTPRequest#query メソッドが...