ライブラリ
- ビルトイン (8)
- benchmark (1)
-
cgi
/ html (8) - date (1)
- e2mmap (2)
- getoptlong (2)
-
irb
/ context (1) - json (9)
- logger (7)
- matrix (7)
- mkmf (3)
- monitor (8)
-
net
/ ftp (1) -
net
/ http (2) - open-uri (2)
- openssl (3)
- optparse (2)
- pathname (3)
- rake (1)
-
rdoc
/ context (8) -
rdoc
/ text (1) -
rdoc
/ top _ level (3) - resolv (1)
-
rexml
/ document (8) - rss (8)
-
rubygems
/ format (2) -
rubygems
/ installer (1) -
rubygems
/ old _ format (6) -
rubygems
/ platform (11) -
rubygems
/ remote _ fetcher (1) -
rubygems
/ source _ index (1) -
rubygems
/ source _ info _ cache (2) -
rubygems
/ spec _ fetcher (2) -
rubygems
/ specification (5) -
rubygems
/ version _ option (1) - scanf (7)
- shell (3)
-
shell
/ command-processor (3) -
shell
/ filter (3) -
shell
/ process-controller (1) -
shell
/ system-command (1) - stringio (1)
- strscan (1)
-
syslog
/ logger (3) - un (2)
- uri (2)
-
webrick
/ httputils (11) -
webrick
/ log (2) - zlib (1)
クラス
-
ARGF
. class (1) - Array (3)
-
Benchmark
:: Tms (1) - Date (1)
-
Gem
:: Format (2) -
Gem
:: Installer (1) -
Gem
:: OldFormat (6) -
Gem
:: Platform (11) -
Gem
:: RemoteFetcher (1) -
Gem
:: SourceIndex (1) -
Gem
:: SourceInfoCache (2) -
Gem
:: SpecFetcher (2) -
Gem
:: Specification (5) - GetoptLong (2)
- IO (1)
-
IRB
:: Context (1) - Logger (4)
-
Logger
:: Formatter (3) - Matrix (4)
-
Matrix
:: LUPDecomposition (1) -
MonitorMixin
:: ConditionVariable (5) -
Net
:: FTP (1) -
Net
:: HTTPGenericRequest (2) -
OpenSSL
:: PKey :: EC :: Group (2) - OptionParser (1)
- Pathname (3)
-
Process
:: Status (1) -
RDoc
:: Context (8) -
RDoc
:: Options (2) -
RDoc
:: TopLevel (3) -
REXML
:: Attribute (1) -
REXML
:: Entity (2) -
REXML
:: Formatters :: Default (1) -
REXML
:: Formatters :: Pretty (4) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid (2) -
RSS
:: NotWellFormedError (2) -
RSS
:: Rss :: Channel :: Item :: Guid (1) -
Resolv
:: DNS :: Resource :: MINFO (1) -
Scanf
:: FormatSpecifier (1) -
Scanf
:: FormatString (4) - Shell (3)
-
Shell
:: CommandProcessor (3) -
Shell
:: Filter (3) -
Shell
:: ProcessController (1) -
Shell
:: SystemCommand (1) - StringIO (1)
- StringScanner (1)
-
Syslog
:: Logger (2) -
Syslog
:: Logger :: Formatter (1) - Thread (1)
- Time (1)
-
URI
:: Generic (2) - Vector (2)
-
WEBrick
:: HTTPUtils :: FormData (11) -
WEBrick
:: Log (2) -
Zlib
:: GzipWriter (1)
モジュール
-
CGI
:: HtmlExtension (8) - DublinCoreModel (3)
- Exception2MessageMapper (2)
-
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 (1) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (8)
- MonitorMixin (3)
-
OpenSSL
:: Buffering (1) -
OpenURI
:: OpenRead (2) -
OptionParser
:: Arguable (1) -
RDoc
:: Text (1)
キーワード
- << (1)
- == (1)
- === (1)
- =~ (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)
- compact (1)
- compact= (1)
- cpu (1)
- cpu= (1)
-
datetime
_ format (2) -
datetime
_ format= (2) -
dc
_ format (1) -
dc
_ format= (1) -
dc
_ formats (1) -
def
_ exception (1) - delete (3)
- determinant (1)
-
determinant
_ e (1) -
each
_ classmodule (1) -
each
_ data (1) - element (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 (3)
- formatter= (3)
-
gem
_ path (1) -
gem
_ path= (1) - hermitian? (1)
- isPermaLink (2)
- isPermaLink= (1)
-
last
_ match _ tried (1) -
last
_ spec (1) -
last
_ spec _ tried (1) - letter (1)
- line (1)
- list (1)
- modules (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)
- os= (1)
- permutation (2)
- permutation? (1)
- permute! (2)
- platform (1)
- platform= (1)
-
point
_ conversion _ form (1) -
point
_ conversion _ form= (1) - printf (5)
-
repeated
_ permutation (1) -
request
_ body _ permitted? (1) -
response
_ body _ permitted? (1) -
return
_ format= (1) -
rm
_ f (1) -
rm
_ rf (1) - rmailbx (1)
- rmdir (5)
- rmtree (1)
- scanf (2)
- search (2)
-
search
_ with _ source (1) - signal (1)
- spec (1)
- spec= (1)
- strftime (2)
-
string
_ left (1) - task (1)
- terminate (4)
-
terminate
_ job (1) - terminated? (1)
- termsig (1)
-
time
_ format (1) -
time
_ format= (1) -
to
_ a (1) -
to
_ ary (1) -
to
_ json (9) -
to
_ s (2) -
try
_ mon _ enter (1) - unnormalized (1)
- version (1)
- version= (1)
- wait (1)
-
wait
_ until (1) -
wait
_ while (1) - width (1)
- width= (1)
- write (1)
検索結果
先頭5件
-
Kernel
# rm -> () (63343.0) -
ファイルやディレクトリを削除します。
ファイルやディレクトリを削除します。
ruby -run -e rm -- [OPTION] FILE
-f 存在しないファイルを無視します
-r ディレクトリを再帰的にたどってファイルやディレクトリを削除します
-v 詳細表示
@see rm(1) -
Shell
# rm(*filename) -> Integer (54607.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: CommandProcessor # rm(*filename) -> Integer (54607.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: Filter # rm(*filename) -> Integer (54607.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
CGI
:: HtmlExtension # multipart _ form(action = nil , enctype = "multipart / form-data") -> String (37204.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 (37204.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> -
Gem
:: Specification # platform=(platform) (37204.0) -
この Gem パッケージを使用できるプラットフォームをセットします。
この Gem パッケージを使用できるプラットフォームをセットします。
@param platform この Gem パッケージを使用できるプラットフォームを指定します。
デフォルトは Gem::Platform::RUBY です。
@see Gem::Platform::RUBY -
Gem
:: Installer # formatted _ program _ filename(filename) -> String (36904.0) -
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
@param filename 実行ファイルのファイル名を指定します。 -
Gem
:: Specification # original _ platform=(platform) (36904.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
@param platform プラットフォームを指定します。 -
Syslog
:: Logger # formatter -> Logger :: Formatter | Proc (36904.0) -
ログを出力する際に使用するフォーマッターを取得します。
ログを出力する際に使用するフォーマッターを取得します。
デフォルトでは Logger::Formatter オブジェクトを返します。
@see Syslog::Logger#formatter= -
CGI
:: HtmlExtension # multipart _ form(attributes) -> String (36604.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 (36604.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
:: RemoteFetcher # normalize _ uri(uri) -> String (36604.0) -
URI のスキーム部分が欠けている場合に "http://" を補って返します。
URI のスキーム部分が欠けている場合に "http://" を補って返します。
@param uri URI 文字列を指定します。 -
Gem
:: Specification # normalize -> [String] (36604.0) -
この Gem パッケージの含まれるファイルリストから重複を取り除きます。
この Gem パッケージの含まれるファイルリストから重複を取り除きます。 -
Gem
:: Specification # original _ platform -> String (36604.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。 -
Gem
:: Specification # platform -> String (36604.0) -
この Gem パッケージを使用できるプラットフォームを返します。
この Gem パッケージを使用できるプラットフォームを返します。 -
Gem
:: VersionOption # add _ platform _ option(task = command , *wrap) (36604.0) -
option parser に対して --platform オプションを追加します。
option parser に対して --platform オプションを追加します。
@param task コマンド名を指定します。デフォルト値はインクルードされる側のクラスで指定されます。
@param wrap Gem::Command#add_option に渡すその他のオプションを指定します。 -
Logger
:: Formatter # datetime _ format=(format) (36604.0) -
ログの日時フォーマットをセットします。
ログの日時フォーマットをセットします。
@param format 日時のフォーマット文字列。Time#strftime で使用するフォーマット文字列と
同じものを使用できます。
//emlist[例][ruby]{
require 'logger'
formatter = Logger::Formatter.new
formatter.datetime_format # => nil
formatter.datetime_format = '%Y-%m-%d %H:%M:%S' # => "%Y-%m-%d %H:%M:%S"
formatter.date... -
Matrix
# normal? -> bool (36604.0) -
行列が正規行列ならば true を返します。
行列が正規行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します -
RDoc
:: Text # normalize _ comment(text) -> String (36604.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) (36604.0) -
正規化された属性値を設定します。
正規化された属性値を設定します。
通常はライブラリが自動的にこの値を設定するので
ユーザはこれを使う必要はないでしょう。
@param value 正規化された属性値 -
REXML
:: Entity # normalized -> String | nil (36604.0) -
正規化された(normalized)実体の値を返します。
正規化された(normalized)実体の値を返します。
すなわち、一切の実体参照を展開していない値を返します。
外部実体(external entity)宣言の場合は nil を返します。
@see REXML::Entity#value, REXML::Entity#unnormalized -
REXML
:: Entity # unnormalized -> String | nil (36604.0) -
非正規化された(unnormalized)実体の値を返します。
非正規化された(unnormalized)実体の値を返します。
すなわち、self が属する DTD によってすべての実体参照(&ent; と %ent; の両方)
を展開した文字列を返します。
外部実体(external entity)宣言の場合は nil を返します。
@see REXML::Entity#value, REXML::Entity#normalized -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink (36604.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink=() (36604.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item :: Guid # isPermaLink (36604.0) -
@todo
@todo
* http://purl.org/dc/elements/1.1/ -
Resolv
:: DNS :: Resource :: MINFO # rmailbx -> String (36604.0) -
メーリングリストもしくはメールボックスの 責任者のドメイン名を返します。
メーリングリストもしくはメールボックスの
責任者のドメイン名を返します。 -
Syslog
:: Logger # formatter=(formatter) (36604.0) -
ログを出力する際に使用するフォーマッターをセットします。
ログを出力する際に使用するフォーマッターをセットします。
@param formatter 4 つの引数 (severity, time, program name, message) を
受け取る call メソッドを 持つオブジェクトを指定します。
引数 formatter が持つ call メソッドは以下の 4 つの引数 (severity,
time, program name, message) を受けとります。
: severity
このメッセージのログレベル(Logger::Severity 参照)。
: time
このメッ... -
URI
:: Generic # normalize -> URI :: Generic (36604.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 (36604.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 (36604.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 -
Logger
:: Formatter # datetime _ format -> String (36304.0) -
ログの日時フォーマットを取得します。
ログの日時フォーマットを取得します。
@see Time#strftime -
MonitorMixin
:: ConditionVariable # wait _ while { . . . } -> () (36304.0) -
モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たしている間停止します。
モニタのロックを開放し、現在のスレッドを
ブロックで指定した条件を満たしている間停止します。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結果によってこのメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。
@raise ThreadError ロックを持っていないスレッドがこのメソッドを呼びだした場合に発生します
@see MonitorMixin::ConditionV... -
Shell
:: ProcessController # terminate _ job(command) (36304.0) -
指定されたコマンドを終了します。
指定されたコマンドを終了します。
@param command コマンドを指定します。 -
Syslog
:: Logger :: Formatter # call(severity , time , progname , message) -> String (36304.0) -
引数を元にフォーマットした文字列を返します。
引数を元にフォーマットした文字列を返します。
ライブラリ内部で使用します。 -
RDoc
:: TopLevel # add _ class _ or _ module(collection , class _ type , name , superclass) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (29104.0) -
collection に name で指定したクラス、モジュールを追加します。
collection に name で指定したクラス、モジュールを追加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param su... -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") -> String (27904.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 (27904.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 _ module _ named(name) -> RDoc :: NormalModule (27904.0) -
RDoc が収集したクラスの内、name で指定した名前のモジュールを返します。 見つからなかった場合は nil を返します。
RDoc が収集したクラスの内、name で指定した名前のモジュールを返します。
見つからなかった場合は nil を返します。
@param name モジュール名を文字列で指定します。 -
Kernel
# rm _ f(*files) -> () (27691.0) -
FileUtils.#rm_f のラッパーメソッドです。
FileUtils.#rm_f のラッパーメソッドです。
@param files ファイルのリストか、Dir.globで利用できる glob パターンを指定します。
最後の要素が Hash の場合は FileUtils.#rm_f の第二引数になります。
@see FileUtils.#rm_f, Dir.glob -
Kernel
# rm _ rf(*files) -> () (27691.0) -
FileUtils.#rm_rf のラッパーメソッドです。
FileUtils.#rm_rf のラッパーメソッドです。
@param files ファイルのリストか、Dir.globで利用できる glob パターンを指定します。
最後の要素が Hash の場合は FileUtils.#rm_f の第二引数になります。
@see FileUtils.#rm_rf, Dir.glob -
Gem
:: Format # file _ entries=(file _ entries) (27604.0) -
Gem パッケージに含まれるファイルの配列をセットします。
Gem パッケージに含まれるファイルの配列をセットします。
@param file_entries -
Gem
:: OldFormat # file _ entries=(file _ entries) (27604.0) -
Gem パッケージに含まれるファイルの配列をセットします。
Gem パッケージに含まれるファイルの配列をセットします。
@param file_entries -
GetoptLong
# terminate -> self (27604.0) -
オプションの処理を、強制的に終了させます。ただし、エラーが起き ている状態でこのメソッドを起動しても、終了させることはできません。
オプションの処理を、強制的に終了させます。ただし、エラーが起き
ている状態でこのメソッドを起動しても、終了させることはできません。
すでにオプションの処理が終了しているときは、このメソッドは何も行いません。
@raise RuntimeError エラーが起きている状態でこのメソッドを起動すると、発生します -
GetoptLong
# terminated? -> true | false (27604.0) -
エラーが起きずにオプションの処理が終了しているときは真が 返ります。それ以外のときは、偽が返ります。
エラーが起きずにオプションの処理が終了しているときは真が
返ります。それ以外のときは、偽が返ります。 -
Logger
# datetime _ format -> String | nil (27604.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... -
Logger
# datetime _ format=(format) (27604.0) -
ログに記録する時の日付のフォーマットをセットします。
ログに記録する時の日付のフォーマットをセットします。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.datetime_format # => nil
logger.debug("test")
logger.datetime_format = '%Y/%m/%dT%H:%M:%S.%06d' # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.datetime_format # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.debug("test"... -
Logger
# formatter=(formatter) (27604.0) -
ログを出力する際に使用するフォーマッターをセットします。
ログを出力する際に使用するフォーマッターをセットします。
@param formatter 4 つの引数 (severity, time, program name, message) を受け取る call メソッドを
持つオブジェクトを指定します。call メソッドの返り値は文字列にしてください。
//emlist[][ruby]{
require 'logger'
logger = Logger.new
logger.formatter = proc{|severity, datetime, progname, message|
"#{datet... -
OpenSSL
:: PKey :: EC :: Group # point _ conversion _ form -> Symbol (27604.0) -
点のエンコーディング方式を返します。
点のエンコーディング方式を返します。
以下のいずれかを返します。
* :compressed
* :uncompressed
* :hybrid
詳しくは X9.62 (ECDSA) などを参照してください。
@raise OpenSSL::PKey::EC::Group::Error 得られたエンコーディングが未知の値であった
場合に発生します。
@see OpenSSL::PKey::EC::Group#point_conversion_form= -
CGI
:: HtmlExtension # form(attributes) -> String (27304.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 (27304.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param attributes 属性をハッシュで指定します。
例:
form({"METHOD" => "post", ENCTYPE => "enctype"}){ "string" }
# <FORM METHOD="post" ENCTYPE="enctype">string</FORM>
@see CGI::HtmlExtension#multipart_form -
DublinCoreModel
# dc _ format (27304.0) -
@todo
@todo -
DublinCoreModel
# dc _ format= (27304.0) -
@todo
@todo -
DublinCoreModel
# dc _ formats (27304.0) -
@todo
@todo -
Gem
:: Format # file _ entries -> Array (27304.0) -
Gem パッケージに含まれるファイルの配列を返します。
Gem パッケージに含まれるファイルの配列を返します。 -
Gem
:: OldFormat # file _ entries -> Array (27304.0) -
Gem パッケージに含まれるファイルの配列を返します。
Gem パッケージに含まれるファイルの配列を返します。 -
Kernel
# rmdir -> () (27304.0) -
空のディレクトリを削除します。
空のディレクトリを削除します。
ruby -run -e rmdir -- [OPTION] DIR
-p DIR で指定されたディレクトリとその上位ディレクトリを削除します
-v 詳細表示
@see rmdir(1) -
Logger
# formatter -> String (27304.0) -
ログを出力する際に使用するフォーマッターを取得します。
ログを出力する際に使用するフォーマッターを取得します。
このメソッドの返り値が持つ call メソッドは 4 つの引数 (severity, time, program name, message) を受けとります。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.formatter # => nil
logger.info("test")
# => I, [2019-05-09T22:13:56.509159 #13912] INFO -- : test
ltsv_formatter =... -
Logger
:: Formatter # call(severity , time , progname , msg) -> String (27304.0) -
ログ情報をフォーマットして返します。
ログ情報をフォーマットして返します。
@param severity ログレベル。
@param time 時間。Time クラスのオブジェクト。
@param progname プログラム名
@param msg メッセージ。 -
MonitorMixin
:: ConditionVariable # signal -> () (27304.0) -
その条件変数で待っているスレッドがあれば実行を再開させます。
その条件変数で待っているスレッドがあれば実行を再開させます。
複数のスレッドが待っている場合には1つのスレッドのみ
実行を再開します。
@see MonitorMixin::ConditionVariable#broadcast -
MonitorMixin
:: ConditionVariable # wait _ until { . . . } -> () (27304.0) -
モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たすまで停止します。
モニタのロックを開放し、現在のスレッドを
ブロックで指定した条件を満たすまで停止します。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結果によってこのメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。
@see MonitorMixin::ConditionVariable#wait -
OpenSSL
:: PKey :: EC :: Group # point _ conversion _ form=(sym) (27304.0) -
点のエンコーディング方式を設定します。
点のエンコーディング方式を設定します。
以下のいずれかを設定します。
* :compressed
* :uncompressed
* :hybrid
詳しくは X9.62 (ECDSA) などを参照してください。
@param sym 設定する方式(Symbol)
@see OpenSSL::PKey::EC::Group#point_conversion_form -
OptionParser
:: Arguable # permute! -> [String] (27304.0) -
自身を破壊的にパースし、パースされずに残った引数を文字列の配列として返します。 OptionParser#permute! を参照して下さい。
自身を破壊的にパースし、パースされずに残った引数を文字列の配列として返します。
OptionParser#permute! を参照して下さい。
@raise OptionParser::ParseError 自身のパースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスの例外になります。
//emlist[][ruby]{
require 'optparse'
o = nil
ARGV.options.on(... -
RSS
:: NotWellFormedError # element (27304.0) -
@todo
@todo -
RSS
:: NotWellFormedError # line (27304.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # letter (27304.0) -
@todo
@todo -
Scanf
:: FormatString # last _ match _ tried (27304.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec (27304.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec _ tried (27304.0) -
@todo
@todo -
Scanf
:: FormatString # string _ left (27304.0) -
@todo
@todo -
Shell
# rmdir(*path) -> () (27304.0) -
Dir.rmdirと同じです。 (複数可)
Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。 -
Shell
:: CommandProcessor # rmdir(*path) -> () (27304.0) -
Dir.rmdirと同じです。 (複数可)
Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。 -
Shell
:: Filter # rmdir(*path) -> () (27304.0) -
Dir.rmdirと同じです。 (複数可)
Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。 -
Shell
:: SystemCommand # terminate -> () (27304.0) -
@todo
@todo -
WEBrick
:: HTTPUtils :: FormData # filename -> String | nil (27304.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() -
WEBrick
:: HTTPUtils :: FormData # filename=(value) (27304.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() -
WEBrick
:: HTTPUtils :: FormData # list -> Array (27304.0) -
自身が表す各フォームデータを収納した配列を生成して返します。
自身が表す各フォームデータを収納した配列を生成して返します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].list #=> ["val1", "val2", "val3"]
end
end
MyCGI.new.start() -
WEBrick
:: Log # time _ format -> String (27304.0) -
時間を記録するフォーマットを文字列で表すアクセサです。 形式は Time#strftime と同じです。 デフォルトは "[%Y-%m-%d %H:%M:%S]" です。
時間を記録するフォーマットを文字列で表すアクセサです。
形式は Time#strftime と同じです。
デフォルトは "[%Y-%m-%d %H:%M:%S]" です。 -
WEBrick
:: Log # time _ format=() (27304.0) -
時間を記録するフォーマットを文字列で表すアクセサです。 形式は Time#strftime と同じです。 デフォルトは "[%Y-%m-%d %H:%M:%S]" です。
時間を記録するフォーマットを文字列で表すアクセサです。
形式は Time#strftime と同じです。
デフォルトは "[%Y-%m-%d %H:%M:%S]" です。 -
RDoc
:: Context # add _ class _ or _ module(collection , class _ type , name , superclass = nil) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (20104.0) -
collection に name で指定したクラス、モジュールを追加します。
collection に name で指定したクラス、モジュールを追加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param su... -
RDoc
:: Context # add _ class(class _ type , name , superclass) -> RDoc :: SingleClass | RDoc :: NormalClass (19804.0) -
引数で指定したクラスを追加します。
引数で指定したクラスを追加します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追加するクラスの親クラスを RDoc::NormalClass オ
ブジェクトで指定します。 -
RDoc
:: Context # add _ module(class _ type , name) -> RDoc :: NormalModule | RDoc :: SingleClass | RDoc :: NormalClass (19504.0) -
引数で指定したモジュールを追加します。
引数で指定したモジュールを追加します。
ただし、クラスとして既に同名のものが登録されていた場合は、何もせずにそ
のクラスを返します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@see RDoc::Context#add_class -
RDoc
:: Context # each _ classmodule {|m| . . . } -> [RDoc :: SingleClass | RDoc :: NormalClass | RDoc :: NormalModule] (19504.0) -
追加されたクラス、モジュールに対してブロックを評価します。
追加されたクラス、モジュールに対してブロックを評価します。
@see RDoc::Context#classes, RDoc::Context#modules -
RDoc
:: Context # classes -> [RDoc :: SingleClass | RDoc :: NormalClass] (19204.0) -
追加されたクラスの配列を返します。
追加されたクラスの配列を返します。 -
Array
# permutation(n = self . length) { |p| block } -> self (18904.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
引数を省略した場合は配列の要素数と同じサイズの順列に対してブロックを実
行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
... -
RDoc
:: Context # find _ module _ named(name) -> RDoc :: NormalModule | nil (18904.0) -
追加された RDoc::NormalModule から引数で指定した名前のモジュール を検索します。見つからなかった場合は nil を返します。
追加された RDoc::NormalModule から引数で指定した名前のモジュール
を検索します。見つからなかった場合は nil を返します。
@param name モジュールの名前を文字列で指定します。 -
RDoc
:: Context # modules -> [RDoc :: NormalModule] (18904.0) -
追加された RDoc::NormalModule の配列を返します。
追加された RDoc::NormalModule の配列を返します。 -
RDoc
:: TopLevel # find _ local _ symbol(name) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule | RDoc :: AnyMethod | RDoc :: Alias | RDoc :: Attr | RDoc :: Constant (18904.0) -
クラス、モジュール、メソッド、定数、属性、alias、ファイルから name で指定したものを返します。見つからなかった場合は nil を返します。
クラス、モジュール、メソッド、定数、属性、alias、ファイルから name で指定したものを返します。見つからなかった場合は nil を返します。 -
Pathname
# rmtree -> nil (18670.0) -
FileUtils.rm_r(self.to_s) と同じです。
FileUtils.rm_r(self.to_s) と同じです。
@see FileUtils.#rm_r -
Shell
# delete(*filename) -> Integer (18607.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: CommandProcessor # delete(*filename) -> Integer (18607.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: Filter # delete(*filename) -> Integer (18607.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Array
# permutation(n = self . length) -> Enumerator (18604.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
引数を省略した場合は配列の要素数と同じサイズの順列に対してブロックを実
行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
... -
Array
# repeated _ permutation(n) { |p| . . . } -> self (18604.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby... -
Benchmark
:: Tms # format(fmtstr = nil , *args) -> String (18604.0) -
self を指定されたフォーマットで整形して返します。
self を指定されたフォーマットで整形して返します。
このメソッドは Kernel.#format のようにオブジェクトを整形しますが、
以下の拡張を使用することができます。
: %u
user CPU time で置き換えられます。Benchmark::Tms#utime
: %y
system CPU time で置き換えられます(Mnemonic: y of "s*y*stem")。Benchmark::Tms#stime
: %U
子プロセスの user CPU time で置き換えられます。Benchmark::Tms#cutime
: %Y
子プロセスの s... -
IRB
:: Context # return _ format=(val) (18604.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
@see IRB::Context#return_format, print_format
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。 -
Matrix
# hermitian? -> bool (18604.0) -
行列がエルミートならば true を返します。
行列がエルミートならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します -
Matrix
# permutation? -> bool (18604.0) -
行列が置換行列ならば true を返します。
行列が置換行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します -
Net
:: FTP # rmdir(dirname) -> nil (18604.0) -
リモートサーバ上のディレクトリを削除します。
リモートサーバ上のディレクトリを削除します。
@param dirname 削除するディレクトリ名を文字列で指定します。
@raise Net::FTPReplyError 応答コードが正しくない場合に発生します。削除に失敗した場合に発生します。 -
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (18604.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...