ライブラリ
- ビルトイン (9)
- benchmark (1)
-
cgi
/ html (8) - date (1)
- e2mmap (2)
- getoptlong (2)
-
irb
/ context (2) - json (11)
- logger (4)
- matrix (8)
- mkmf (3)
- monitor (12)
-
net
/ ftp (1) -
net
/ http (2) - open-uri (2)
- openssl (3)
- optparse (4)
- pathname (4)
-
rdoc
/ context (7) -
rdoc
/ text (1) -
rdoc
/ top _ level (3) - resolv (1)
-
rexml
/ document (5) - rss (7)
-
rubygems
/ format (4) -
rubygems
/ installer (1) -
rubygems
/ old _ format (4) -
rubygems
/ platform (5) -
rubygems
/ remote _ fetcher (1) -
rubygems
/ source _ index (1) -
rubygems
/ source _ info _ cache (2) -
rubygems
/ spec _ fetcher (2) -
rubygems
/ specification (6) -
rubygems
/ user _ interaction (2) -
rubygems
/ version _ option (1) - scanf (25)
- shell (2)
-
shell
/ command-processor (3) -
shell
/ filter (2) -
shell
/ process-controller (1) -
shell
/ system-command (1) - stringio (1)
- strscan (1)
-
syslog
/ logger (1) - un (1)
- uri (2)
-
webrick
/ httputils (7) -
webrick
/ log (1) - zlib (1)
クラス
-
ARGF
. class (1) - Array (4)
-
Benchmark
:: Tms (1) - Date (1)
-
Gem
:: Format (4) -
Gem
:: Installer (1) -
Gem
:: OldFormat (4) -
Gem
:: Platform (5) -
Gem
:: RemoteFetcher (1) -
Gem
:: SourceIndex (1) -
Gem
:: SourceInfoCache (2) -
Gem
:: SpecFetcher (2) -
Gem
:: Specification (6) -
Gem
:: StreamUI (1) - GetoptLong (2)
- IO (3)
-
IRB
:: Context (2) - Logger (2)
-
Logger
:: Formatter (2) - Matrix (5)
-
Matrix
:: LUPDecomposition (1) -
MonitorMixin
:: ConditionVariable (5) -
Net
:: FTP (1) -
Net
:: HTTPGenericRequest (2) -
OpenSSL
:: PKey :: EC :: Group (2) - OptionParser (3)
- Pathname (4)
-
Process
:: Status (1) -
RDoc
:: Context (7) -
RDoc
:: Options (3) -
RDoc
:: TopLevel (3) -
REXML
:: Attribute (1) -
REXML
:: Entity (2) -
REXML
:: Formatters :: Default (1) -
REXML
:: Formatters :: Pretty (1) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid (2) -
RSS
:: NotWellFormedError (1) -
RSS
:: Rss :: Channel :: Item :: Guid (1) -
Resolv
:: DNS :: Resource :: MINFO (1) -
Scanf
:: FormatSpecifier (11) -
Scanf
:: FormatString (10) - Shell (2)
-
Shell
:: CommandProcessor (3) -
Shell
:: Filter (2) -
Shell
:: ProcessController (1) -
Shell
:: SystemCommand (1) - String (2)
- StringIO (1)
- StringScanner (1)
-
Syslog
:: Logger :: Formatter (1) - Thread (1)
- Time (1)
-
URI
:: Generic (2) - Vector (2)
-
WEBrick
:: HTTPUtils :: FormData (7) -
WEBrick
:: Log (1) -
Zlib
:: GzipWriter (1)
モジュール
-
CGI
:: HtmlExtension (8) - DublinCoreModel (3)
- Exception2MessageMapper (2)
-
Gem
:: UserInteraction (1) -
Gem
:: VersionOption (1) -
JSON
:: Generator :: GeneratorMethods :: Array (1) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Float (1) -
JSON
:: Generator :: GeneratorMethods :: Hash (1) -
JSON
:: Generator :: GeneratorMethods :: Integer (1) -
JSON
:: Generator :: GeneratorMethods :: NilClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: String (3) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (4)
- MonitorMixin (7)
-
OpenSSL
:: Buffering (1) -
OpenURI
:: OpenRead (2) -
OptionParser
:: Arguable (1) -
RDoc
:: Text (1)
キーワード
- [] (1)
-
add
_ class (1) -
add
_ class _ or _ module (2) -
add
_ module (1) -
add
_ platform _ option (1) -
append
_ data (1) - broadcast (1)
- call (2)
- classes (1)
- conversion (1)
-
count
_ space? (1) - cpu (1)
-
datetime
_ format (2) -
dc
_ format (1) -
dc
_ format= (1) -
dc
_ formats (1) -
def
_ exception (1) - delete (3)
- determinant (2)
-
determinant
_ e (1) -
each
_ classmodule (1) - fetch (1)
-
file
_ entries (2) -
file
_ entries= (2) - filename (1)
- filename= (1)
-
find
_ enclosing _ module _ named (1) -
find
_ local _ symbol (1) -
find
_ matching (1) -
find
_ module _ named (2) - form (4)
- format (1)
-
formatted
_ program _ filename (1) - formatter (2)
- formatter= (1)
-
gem
_ path (2) - hermitian? (1)
-
image
_ format (1) - isPermaLink (2)
- isPermaLink= (1)
-
last
_ match _ tried (1) -
last
_ spec (1) -
last
_ spec _ tried (1) - letter (1)
- line (1)
- match (2)
- matched (1)
-
matched
_ count (1) -
matched
_ string (1) -
mid
_ match? (1) -
mon
_ enter (1) -
mon
_ exit (1) -
mon
_ synchronize (1) -
mon
_ try _ enter (1) -
multipart
_ form (4) - name (1)
- name= (1)
-
new
_ cond (1) - norm (1)
- normal? (1)
- normalize (3)
- normalize! (1)
-
normalize
_ comment (1) -
normalize
_ uri (1) - normalized (1)
- normalized= (1)
- open (4)
-
original
_ platform (1) -
original
_ platform= (1) - os (1)
- permutation (2)
- permutation? (1)
- permute (2)
- permute! (2)
- platform (1)
- platform= (1)
-
point
_ conversion _ form (1) -
point
_ conversion _ form= (1) - printf (5)
- prune (1)
-
re
_ string (1) -
repeated
_ permutation (2) -
request
_ body _ permitted? (1) - requirements= (1)
-
response
_ body _ permitted? (1) -
return
_ format (1) -
return
_ format= (1) -
rm
_ f (1) -
rm
_ rf (1) - rmailbx (1)
- rmdir (4)
- rmtree (1)
- scanf (4)
- search (2)
-
search
_ with _ source (1) - signal (1)
- space (1)
- spec (2)
-
spec
_ count (1) - strftime (2)
-
string
_ left (1) - synchronize (1)
- terminate (4)
-
terminate
_ interaction (2) -
terminate
_ job (1) - terminated? (1)
- termsig (1)
-
time
_ format (1) -
to
_ json (9) -
to
_ json _ raw (1) -
to
_ json _ raw _ object (1) -
to
_ re (1) -
to
_ s (4) -
try
_ mon _ enter (1) - unnormalized (1)
- version (1)
- version= (1)
- wait (1)
-
wait
_ until (1) -
wait
_ while (1) - width (2)
- write (1)
検索結果
先頭5件
-
Gem
:: UserInteraction # terminate _ interaction(*args) -> () (91204.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param args 委譲先のメソッドに与える引数です。 -
Gem
:: VersionOption # add _ platform _ option(task = command , *wrap) (72904.0) -
option parser に対して --platform オプションを追加します。
option parser に対して --platform オプションを追加します。
@param task コマンド名を指定します。デフォルト値はインクルードされる側のクラスで指定されます。
@param wrap Gem::Command#add_option に渡すその他のオプションを指定します。 -
Gem
:: StreamUI # terminate _ interaction(status = 0) -> () (64204.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param status 終了ステータスを指定します。デフォルトは 0 (成功) です。
@raise Gem::SystemExitException このメソッドを呼び出すと必ず発生する例外です。 -
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (63904.0) -
サーバからのレスポンスにエンティティボディを含むことが許されている HTTP メソッド (GET, POST など)の場合真を返します。
サーバからのレスポンスにエンティティボディを含むことが許されている
HTTP メソッド (GET, POST など)の場合真を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
post.response_body_permitted? # => true
head = Net::HTTP::Head.new(uri.request_uri)
head.r... -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink (63904.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink=() (63904.0) -
@todo
@todo -
MonitorMixin
:: ConditionVariable # wait _ until { . . . } -> () (63604.0) -
モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たすまで停止します。
モニタのロックを開放し、現在のスレッドを
ブロックで指定した条件を満たすまで停止します。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結果によってこのメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。
@see MonitorMixin::ConditionVariable#wait -
Gem
:: SpecFetcher # find _ matching(dependency , all = false , matching _ platform = true) -> Array (55804.0) -
依存関係を満たす gemspec の名前の配列を返します。
依存関係を満たす gemspec の名前の配列を返します。
@param dependency 依存関係を指定します。
@param all 真を指定するとマッチする全てのバージョンの情報を返します。
@param matching_platform 偽を指定すると全てのプラットフォームの情報を返します。
@see Gem::Dependency -
Gem
:: Installer # formatted _ program _ filename(filename) -> String (55504.0) -
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
@param filename 実行ファイルのファイル名を指定します。 -
Gem
:: Specification # original _ platform=(platform) (55204.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
@param platform プラットフォームを指定します。 -
RDoc
:: Context # find _ enclosing _ module _ named(name) -> RDoc :: NormalModule | nil (55204.0) -
find a module at a higher scope
find a module at a higher scope -
Array
# permutation(n = self . length) -> Enumerator (54976.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
引数を省略した場合は配列の要素数と同じサイズの順列に対してブロックを実
行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
... -
Array
# permutation(n = self . length) { |p| block } -> self (54976.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
引数を省略した場合は配列の要素数と同じサイズの順列に対してブロックを実
行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
... -
Array
# repeated _ permutation(n) -> Enumerator (54976.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby... -
Array
# repeated _ permutation(n) { |p| . . . } -> self (54976.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby... -
Shell
:: CommandProcessor # rm(*filename) -> Integer (54907.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: Filter # rm(*filename) -> Integer (54907.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Gem
:: RemoteFetcher # normalize _ uri(uri) -> String (54904.0) -
URI のスキーム部分が欠けている場合に "http://" を補って返します。
URI のスキーム部分が欠けている場合に "http://" を補って返します。
@param uri URI 文字列を指定します。 -
Gem
:: Specification # normalize -> [String] (54904.0) -
この Gem パッケージの含まれるファイルリストから重複を取り除きます。
この Gem パッケージの含まれるファイルリストから重複を取り除きます。 -
Gem
:: Specification # original _ platform -> String (54904.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。 -
GetoptLong
# terminate -> self (54904.0) -
オプションの処理を、強制的に終了させます。ただし、エラーが起き ている状態でこのメソッドを起動しても、終了させることはできません。
オプションの処理を、強制的に終了させます。ただし、エラーが起き
ている状態でこのメソッドを起動しても、終了させることはできません。
すでにオプションの処理が終了しているときは、このメソッドは何も行いません。
@raise RuntimeError エラーが起きている状態でこのメソッドを起動すると、発生します -
GetoptLong
# terminated? -> true | false (54904.0) -
エラーが起きずにオプションの処理が終了しているときは真が 返ります。それ以外のときは、偽が返ります。
エラーが起きずにオプションの処理が終了しているときは真が
返ります。それ以外のときは、偽が返ります。 -
Matrix
# hermitian? -> bool (54904.0) -
行列がエルミートならば true を返します。
行列がエルミートならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します -
Matrix
# permutation? -> bool (54904.0) -
行列が置換行列ならば true を返します。
行列が置換行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します -
OpenSSL
:: PKey :: EC :: Group # point _ conversion _ form -> Symbol (54904.0) -
点のエンコーディング方式を返します。
点のエンコーディング方式を返します。
以下のいずれかを返します。
* :compressed
* :uncompressed
* :hybrid
詳しくは X9.62 (ECDSA) などを参照してください。
@raise OpenSSL::PKey::EC::Group::Error 得られたエンコーディングが未知の値であった
場合に発生します。
@see OpenSSL::PKey::EC::Group#point_conversion_form= -
OpenSSL
:: PKey :: EC :: Group # point _ conversion _ form=(sym) (54904.0) -
点のエンコーディング方式を設定します。
点のエンコーディング方式を設定します。
以下のいずれかを設定します。
* :compressed
* :uncompressed
* :hybrid
詳しくは X9.62 (ECDSA) などを参照してください。
@param sym 設定する方式(Symbol)
@see OpenSSL::PKey::EC::Group#point_conversion_form -
RDoc
:: Text # normalize _ comment(text) -> String (54904.0) -
引数から行頭のスペースや改行文字などを削除します。
引数から行頭のスペースや改行文字などを削除します。
詳しくは [SEE ALSO] の各メソッドを参照してください。
@param text 文字列を指定します。
@see RDoc::Text#strip_hashes, RDoc::Text#expand_tabs,
RDoc::Text#flush_left, RDoc::Text#strip_newlines -
REXML
:: Attribute # normalized=(value) (54904.0) -
正規化された属性値を設定します。
正規化された属性値を設定します。
通常はライブラリが自動的にこの値を設定するので
ユーザはこれを使う必要はないでしょう。
@param value 正規化された属性値 -
REXML
:: Entity # normalized -> String | nil (54904.0) -
正規化された(normalized)実体の値を返します。
正規化された(normalized)実体の値を返します。
すなわち、一切の実体参照を展開していない値を返します。
外部実体(external entity)宣言の場合は nil を返します。
@see REXML::Entity#value, REXML::Entity#unnormalized -
REXML
:: Entity # unnormalized -> String | nil (54904.0) -
非正規化された(unnormalized)実体の値を返します。
非正規化された(unnormalized)実体の値を返します。
すなわち、self が属する DTD によってすべての実体参照(&ent; と %ent; の両方)
を展開した文字列を返します。
外部実体(external entity)宣言の場合は nil を返します。
@see REXML::Entity#value, REXML::Entity#normalized -
RSS
:: Rss :: Channel :: Item :: Guid # isPermaLink (54904.0) -
@todo
@todo
* http://purl.org/dc/elements/1.1/ -
Shell
:: ProcessController # terminate _ job(command) (54904.0) -
指定されたコマンドを終了します。
指定されたコマンドを終了します。
@param command コマンドを指定します。 -
Shell
:: SystemCommand # terminate -> () (54904.0) -
@todo
@todo -
URI
:: Generic # normalize -> URI :: Generic (54904.0) -
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと
構成要素がなければ '/' をセットします。
例:
require 'uri'
u = URI.parse('http://Example.Com')
p u.to_s #=> "http://Example.Com"
p u.normalize.to_s #=> "http://example.com/" -
URI
:: Generic # normalize! -> String | nil (54904.0) -
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと
構成要素がなければ '/' をセットします。
例:
require 'uri'
u = URI.parse('http://Example.Com')
p u.to_s #=> "http://Example.Com"
p u.normalize.to_s #=> "http://example.com/" -
Vector
# normalize -> Vector (54904.0) -
自身を Vector#norm で正規化したベクトルを返します。
自身を Vector#norm で正規化したベクトルを返します。
@raise Vector::ZeroVectorError ベクトルが0である場合に発生します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 6, 9].normalize
# => Vector[0.18181818181818182, 0.5454545454545454, 0.8181818181818182]
v.norm # => 1.0
//}
@see Vector#norm -
MonitorMixin
# mon _ exit -> () (54604.0) -
モニターのロックを解放します。
モニターのロックを解放します。
mon_enter でロックした回数だけ mon_exit を
呼ばなければモニターは解放されません。
モニターが解放されればモニターのロック待ちになっていた
スレッドが一つ実行を再開します。
@raise ThreadError ロックを持っていないスレッドが呼びだした場合に発生します -
MonitorMixin
# mon _ synchronize { . . . } -> object (54604.0) -
モニターをロックし、ブロックを実行します。実行後に必ずモニターのロックを解放します。
モニターをロックし、ブロックを実行します。実行後に必ずモニターのロックを解放します。
ブロックの評価値を返り値として返します。
@see MonitorMixin#mon_enter -
MonitorMixin
# synchronize { . . . } -> object (54604.0) -
モニターをロックし、ブロックを実行します。実行後に必ずモニターのロックを解放します。
モニターをロックし、ブロックを実行します。実行後に必ずモニターのロックを解放します。
ブロックの評価値を返り値として返します。
@see MonitorMixin#mon_enter -
MonitorMixin
:: ConditionVariable # signal -> () (54604.0) -
その条件変数で待っているスレッドがあれば実行を再開させます。
その条件変数で待っているスレッドがあれば実行を再開させます。
複数のスレッドが待っている場合には1つのスレッドのみ
実行を再開します。
@see MonitorMixin::ConditionVariable#broadcast -
MonitorMixin
:: ConditionVariable # wait(timeout = nil) -> bool (54604.0) -
モニタのロックを開放し、現在のスレッドを停止します。
モニタのロックを開放し、現在のスレッドを停止します。
これを呼ぶスレッドはモニタのロックを保持している必要があります。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast
で起こされるまでスレッドは停止し続けます。
timeout を与えた場合は最大 timeout 秒まで停止した後にスレッドを
再開します。
実行を再開したスレッドはモニタのロックを保持した状態になります。
これによって危険領域(critical section)上で動作している
スレッドはただ一つになり... -
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (54604.0) -
リクエストにエンティティボディを一緒に送ることが許されている HTTP メソッド (POST など)の場合真を返します。
リクエストにエンティティボディを一緒に送ることが許されている
HTTP メソッド (POST など)の場合真を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
post.request_body_permitted? # => true
head = Net::HTTP::Head.new(uri.request_uri)
head.request_bo... -
Scanf
:: FormatString # string _ left (54604.0) -
@todo
@todo -
MonitorMixin
:: ConditionVariable # wait _ while { . . . } -> () (54304.0) -
モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たしている間停止します。
モニタのロックを開放し、現在のスレッドを
ブロックで指定した条件を満たしている間停止します。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結果によってこのメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。
@raise ThreadError ロックを持っていないスレッドがこのメソッドを呼びだした場合に発生します
@see MonitorMixin::ConditionV... -
CGI
:: HtmlExtension # multipart _ form(action = nil , enctype = "multipart / form-data") -> String (46504.0) -
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param action action 属性の値を指定します。
@param enctype enctype 属性の値を指定します。
例:
multipart_form{ "string" }
# <FORM METHOD="post" ENCTYPE="multipart/form-data">string</FORM> -
CGI
:: HtmlExtension # multipart _ form(action = nil , enctype = "multipart / form-data") { . . . } -> String (46504.0) -
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param action action 属性の値を指定します。
@param enctype enctype 属性の値を指定します。
例:
multipart_form{ "string" }
# <FORM METHOD="post" ENCTYPE="multipart/form-data">string</FORM> -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (46204.0) -
exception_name という名前の例外クラスを定義します。
exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定します。
省略すると StandardError を使用します。 -
Gem
:: Format # file _ entries=(file _ entries) (46204.0) -
Gem パッケージに含まれるファイルの配列をセットします。
Gem パッケージに含まれるファイルの配列をセットします。
@param file_entries -
Gem
:: OldFormat # file _ entries=(file _ entries) (46204.0) -
Gem パッケージに含まれるファイルの配列をセットします。
Gem パッケージに含まれるファイルの配列をセットします。
@param file_entries -
Net
:: FTP # rmdir(dirname) -> nil (46204.0) -
リモートサーバ上のディレクトリを削除します。
リモートサーバ上のディレクトリを削除します。
@param dirname 削除するディレクトリ名を文字列で指定します。
@raise Net::FTPReplyError 応答コードが正しくない場合に発生します。削除に失敗した場合に発生します。 -
Shell
# rm(*filename) -> Integer (45907.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
CGI
:: HtmlExtension # multipart _ form(attributes) -> String (45904.0) -
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
multipart_form("url"){ "string" }
# <FORM METHOD="post" ACTION="url" ENCTYPE="multipart/form-data">string</FORM> -
CGI
:: HtmlExtension # multipart _ form(attributes) { . . . } -> String (45904.0) -
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
multipart_form("url"){ "string" }
# <FORM METHOD="post" ACTION="url" ENCTYPE="multipart/form-data">string</FORM> -
Gem
:: Platform # version=(version) (45904.0) -
プラットフォームのバージョンをセットします。
プラットフォームのバージョンをセットします。
@param version プラットフォームのバージョンを指定します。 -
IRB
:: Context # return _ format -> String (45904.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットを文字列で返します。
irb のプロンプトでの評価結果を表示する際のフォーマットを文字列で返します。
@see IRB::Context#return_format=, print_format -
Logger
:: Formatter # datetime _ format -> String (45904.0) -
ログの日時フォーマットを取得します。
ログの日時フォーマットを取得します。
@see Time#strftime -
Matrix
:: LUPDecomposition # determinant -> Numeric (45904.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant -
OpenSSL
:: Buffering # printf(format , *args) -> nil (45904.0) -
format に従い引数 args を文字列に変換して 出力します。
format に従い引数 args を文字列に変換して
出力します。
IO#printf と同様です。
@param format 出力フォーマット文字列
@param arg 出力するオブジェクト
@see Kernel.#printf -
RDoc
:: Options # image _ format -> String (45904.0) -
コマンドライン引数の --image-format オプションで指定した名前を文字列の 配列で返します。
コマンドライン引数の --image-format オプションで指定した名前を文字列の
配列で返します。
指定しなかった場合は 'png' を返します。 -
Resolv
:: DNS :: Resource :: MINFO # rmailbx -> String (45904.0) -
メーリングリストもしくはメールボックスの 責任者のドメイン名を返します。
メーリングリストもしくはメールボックスの
責任者のドメイン名を返します。 -
StringIO
# printf(format , *obj) -> nil (45904.0) -
指定されたフォーマットに従い各引数 obj を文字列に変換して、自身に出力します。
指定されたフォーマットに従い各引数 obj を文字列に変換して、自身に出力します。
@param format 文字列のフォーマットを指定します。Kernel.#format を参照して下さい。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.printf("%c%c%c", 97, 98, 99)
a.string ... -
StringScanner
# terminate -> self (45904.0) -
スキャンポインタを文字列末尾後まで進め、マッチ記録を捨てます。
スキャンポインタを文字列末尾後まで進め、マッチ記録を捨てます。
@return self を返します。
pos = self.string.size と同じ動作です。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.scan(/\w+/) # => "test"
s.matched # => "test"
s.pos # => 4
s[0] # => "test"
s.terminate
s.matched # => nil
s[0]... -
WEBrick
:: HTTPUtils :: FormData # filename -> String | nil (45904.0) -
フォームデータの filename 属性を文字列で表すアクセサです。
フォームデータの filename 属性を文字列で表すアクセサです。
@param value フォームデータの filename 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].filename #=> "my_file.txt"
end
end
MyCGI.new.start() -
Gem
:: Format # file _ entries -> Array (45604.0) -
Gem パッケージに含まれるファイルの配列を返します。
Gem パッケージに含まれるファイルの配列を返します。 -
Gem
:: OldFormat # file _ entries -> Array (45604.0) -
Gem パッケージに含まれるファイルの配列を返します。
Gem パッケージに含まれるファイルの配列を返します。 -
Gem
:: Platform # version -> String (45604.0) -
プラットフォームのバージョンを返します。
プラットフォームのバージョンを返します。 -
IRB
:: Context # return _ format=(val) (45604.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
@see IRB::Context#return_format, print_format
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。 -
Kernel
# rmdir -> () (45604.0) -
空のディレクトリを削除します。
空のディレクトリを削除します。
ruby -run -e rmdir -- [OPTION] DIR
-p DIR で指定されたディレクトリとその上位ディレクトリを削除します
-v 詳細表示
@see rmdir(1) -
Matrix
# normal? -> bool (45604.0) -
行列が正規行列ならば true を返します。
行列が正規行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します -
Pathname
# rmdir -> 0 (45604.0) -
Dir.rmdir(self.to_s) と同じです。
Dir.rmdir(self.to_s) と同じです。
@see Dir.rmdir -
RSS
:: NotWellFormedError # line (45604.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # conversion (45604.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched _ string (45604.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # re _ string (45604.0) -
@todo
@todo -
Shell
:: CommandProcessor # rmdir(*path) -> () (45604.0) -
Dir.rmdirと同じです。 (複数可)
Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。 -
WEBrick
:: HTTPUtils :: FormData # filename=(value) (45604.0) -
フォームデータの filename 属性を文字列で表すアクセサです。
フォームデータの filename 属性を文字列で表すアクセサです。
@param value フォームデータの filename 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].filename #=> "my_file.txt"
end
end
MyCGI.new.start() -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") -> String (37504.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。
@param enctype enctype 属性の値を指定します。デフォルトは "application/x-www-form-urlencoded" です。
例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="app... -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") { . . . } -> String (37504.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。
@param enctype enctype 属性の値を指定します。デフォルトは "application/x-www-form-urlencoded" です。
例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="app... -
RDoc
:: TopLevel # find _ local _ symbol(name) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule | RDoc :: AnyMethod | RDoc :: Alias | RDoc :: Attr | RDoc :: Constant (37504.0) -
クラス、モジュール、メソッド、定数、属性、alias、ファイルから name で指定したものを返します。見つからなかった場合は nil を返します。
クラス、モジュール、メソッド、定数、属性、alias、ファイルから name で指定したものを返します。見つからなかった場合は nil を返します。 -
Matrix
# determinant _ e -> Rational | Float (37204.0) -
このメソッドは deprecated です。 Matrix#determinant を代わりに使ってください。
このメソッドは deprecated です。
Matrix#determinant を代わりに使ってください。 -
MonitorMixin
# new _ cond -> MonitorMixin :: ConditionVariable (37204.0) -
モニターに関連付けられた、新しい MonitorMixin::ConditionVariable を生成して返します。
モニターに関連付けられた、新しい MonitorMixin::ConditionVariable を生成して返します。 -
Zlib
:: GzipWriter # printf(format , *args) -> nil (36922.0) -
C 言語の printf と同じように、format に従い引数 を文字列に変換して、自身に出力します。
C 言語の printf と同じように、format に従い引数
を文字列に変換して、自身に出力します。
@param format フォーマット文字列を指定します。print_format を参照してください。
@param args フォーマットされるオブジェクトを指定します。
require 'zlib'
filename='hoge1.gz'
fw = File.open(filename, "w")
Zlib::GzipWriter.wrap(fw, Zlib::BEST_COMPRESSION){|gz|
gz.printf("\n%9s", "b... -
ARGF
. class # printf(format , *arg) -> nil (36904.0) -
C 言語の printf と同じように、format に従い引数を 文字列に変換して処理対象のファイルに出力します。
C 言語の printf と同じように、format に従い引数を
文字列に変換して処理対象のファイルに出力します。
c:ARGF#inplace時にのみ使用できます。
また $stdout への代入の影響を受けません。
それ以外は出力先を指定しない形式の Kernel.#printf と同じです。
@param format フォーマット文字列です。
@param arg フォーマットされる引数です。 -
CGI
:: HtmlExtension # form(attributes) -> String (36904.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
form({"METHOD" => "post", ENCTYPE => "enctype"}){ "string" }
# <FORM METHOD="post" ENCTYPE="enctype">string</FORM>
@see CGI::HtmlExtension#multipart_form -
CGI
:: HtmlExtension # form(attributes) { . . . } -> String (36904.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
form({"METHOD" => "post", ENCTYPE => "enctype"}){ "string" }
# <FORM METHOD="post" ENCTYPE="enctype">string</FORM>
@see CGI::HtmlExtension#multipart_form -
Gem
:: Specification # platform -> String (36904.0) -
この Gem パッケージを使用できるプラットフォームを返します。
この Gem パッケージを使用できるプラットフォームを返します。 -
Gem
:: Specification # requirements=(informations) (36904.0) -
この Gem パッケージを動作させるのに必要な条件をセットします。 これはユーザのためのシンプルな情報をセットします。
この Gem パッケージを動作させるのに必要な条件をセットします。
これはユーザのためのシンプルな情報をセットします。
@param informations 情報を文字列の配列で指定します。 -
IO
# printf(format , *arg) -> nil (36904.0) -
C 言語の printf と同じように、format に従い引数 を文字列に変換して、self に出力します。
C 言語の printf と同じように、format に従い引数
を文字列に変換して、self に出力します。
第一引数に IO を指定できないこと、引数を省略できないことを除けば Kernel.#printf と同じです。
@param format Kernel.#printf と同じです。print_format を参照してください。
@param arg Kernel.#printf と同じです。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX 出力に失敗した場合に発生します。
@see Ker... -
Logger
# datetime _ format -> String | nil (36904.0) -
ログに記録する時の日付のフォーマットです。
ログに記録する時の日付のフォーマットです。
デフォルトでは nil ですが、この値が nil の場合は日付のフォーマットとして
"%Y-%m-%dT%H:%M:%S.%06d " を使用します。
なお、"%06d" には Time#strftime ではなく、単に Time#usec の
値を String#% でフォーマットしたものが入ります。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.datetime_format # => nil
logger.debug("test")
lo... -
Matrix
# determinant -> Numeric (36904.0) -
行列式 (determinant) の値を返します。
行列式 (determinant) の値を返します。
Float を使用すると、精度が不足するため、誤った結果が生じる可能性があることに注意してください。
代わりに、Rational や BigDecimal などの正確なオブジェクトを使用することを検討してください。
@raise ExceptionForMatrix::ErrDimensionMismatch 正方行列でない場合に発生します
//emlist[例][ruby]{
require 'matrix'
p Matrix[[2, 1], [-1, 2]].det #=> 5
p Matrix[[2.0, 1... -
OptionParser
# permute!(argv = self . default _ argv) -> [String] (36904.0) -
与えられた argv を破壊的にパースします。argv からオプションがすべて取り除かれます。 オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。 argv を返します。
与えられた argv を破壊的にパースします。argv からオプションがすべて取り除かれます。
オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。
argv を返します。
下の例で言うと、order と違いコマンドの引数 somefile よりも後ろにオプションを置くことが
できます。
@param argv パースしたい引数を文字列の配列で指定します。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
実際は Optio... -
OptionParser
# permute(*args) -> [String] (36904.0) -
与えられた argv をパースします。 オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。 argv からオプションを取り除いたものを返します。
与えられた argv をパースします。
オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。
argv からオプションを取り除いたものを返します。
下の例で言うと、order と違いコマンドの引数 somefile よりも後ろにオプションを置くことが
できます。
@param argv パースしたい引数を文字列の配列で指定します。
@param args パースしたい引数を順に文字列として与えます。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
... -
OptionParser
# permute(argv) -> [String] (36904.0) -
与えられた argv をパースします。 オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。 argv からオプションを取り除いたものを返します。
与えられた argv をパースします。
オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。
argv からオプションを取り除いたものを返します。
下の例で言うと、order と違いコマンドの引数 somefile よりも後ろにオプションを置くことが
できます。
@param argv パースしたい引数を文字列の配列で指定します。
@param args パースしたい引数を順に文字列として与えます。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
... -
OptionParser
:: Arguable # permute! -> [String] (36904.0) -
自身を破壊的にパースし、パースされずに残った引数を文字列の配列として返します。 OptionParser#permute! を参照して下さい。
自身を破壊的にパースし、パースされずに残った引数を文字列の配列として返します。
OptionParser#permute! を参照して下さい。
@raise OptionParser::ParseError 自身のパースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスの例外になります。
//emlist[][ruby]{
require 'optparse'
o = nil
ARGV.options.on(... -
Process
:: Status # termsig -> Integer | nil (36904.0) -
signaled? が真の場合プロセスを終了させたシグナル番号を、 そうでない場合は nil を返します。
signaled? が真の場合プロセスを終了させたシグナル番号を、
そうでない場合は nil を返します。 -
RDoc
:: Context # find _ module _ named(name) -> RDoc :: NormalModule | nil (36904.0) -
追加された RDoc::NormalModule から引数で指定した名前のモジュール を検索します。見つからなかった場合は nil を返します。
追加された RDoc::NormalModule から引数で指定した名前のモジュール
を検索します。見つからなかった場合は nil を返します。
@param name モジュールの名前を文字列で指定します。 -
RDoc
:: Options # formatter -> nil (36904.0) -
使用されていません。常に nil を返します。
使用されていません。常に nil を返します。 -
RDoc
:: TopLevel # find _ module _ named(name) -> RDoc :: NormalModule (36904.0) -
RDoc が収集したクラスの内、name で指定した名前のモジュールを返します。 見つからなかった場合は nil を返します。
RDoc が収集したクラスの内、name で指定した名前のモジュールを返します。
見つからなかった場合は nil を返します。
@param name モジュール名を文字列で指定します。 -
Thread
# terminate -> self (36904.0) -
スレッドの実行を終了させます。終了時に ensure 節が実行されます。
スレッドの実行を終了させます。終了時に ensure 節が実行されます。
ただし、スレッドは終了処理中(aborting)にはなりますが、
直ちに終了するとは限りません。すでに終了している場合は何もしません。このメソッドにより
終了したスレッドの Thread#value の返り値は不定です。
自身がメインスレッドであるか最後のスレッドである場合は、プロセスを Kernel.#exit(0)
により終了します。
Kernel.#exit と違い例外 SystemExit を発生しません。
th1 = Thread.new do
begin
sleep 10
... -
WEBrick
:: Log # time _ format -> String (36904.0) -
時間を記録するフォーマットを文字列で表すアクセサです。 形式は Time#strftime と同じです。 デフォルトは "[%Y-%m-%d %H:%M:%S]" です。
時間を記録するフォーマットを文字列で表すアクセサです。
形式は Time#strftime と同じです。
デフォルトは "[%Y-%m-%d %H:%M:%S]" です。