ライブラリ
- ビルトイン (11)
- benchmark (1)
-
cgi
/ html (8) - date (1)
- e2mmap (2)
- getoptlong (1)
-
irb
/ context (2) - json (10)
- logger (6)
- matrix (7)
- mkmf (3)
- monitor (8)
-
net
/ ftp (1) -
net
/ http (2) - open-uri (2)
- openssl (3)
- optparse (4)
- pathname (4)
- rake (1)
-
rdoc
/ context (5) -
rdoc
/ markup (1) -
rdoc
/ markup / formatter (2) -
rdoc
/ text (1) -
rdoc
/ top _ level (2) -
rexml
/ document (8) - rss (8)
-
rubygems
/ format (3) -
rubygems
/ installer (1) -
rubygems
/ old _ format (3) -
rubygems
/ platform (6) -
rubygems
/ remote _ fetcher (1) -
rubygems
/ source _ index (1) -
rubygems
/ source _ info _ cache (2) -
rubygems
/ spec _ fetcher (2) -
rubygems
/ specification (3) -
rubygems
/ user _ interaction (2) -
rubygems
/ version _ option (1) - scanf (27)
- shell (3)
-
shell
/ command-processor (3) -
shell
/ filter (3) -
shell
/ process-controller (1) -
shell
/ system-command (1) - stringio (1)
- strscan (1)
-
syslog
/ logger (2) - un (2)
-
webrick
/ httputils (5) - zlib (1)
クラス
-
ARGF
. class (1) - Array (4)
-
Benchmark
:: Tms (1) - Date (1)
-
Gem
:: Format (3) -
Gem
:: Installer (1) -
Gem
:: OldFormat (3) -
Gem
:: Platform (6) -
Gem
:: RemoteFetcher (1) -
Gem
:: SourceIndex (1) -
Gem
:: SourceInfoCache (2) -
Gem
:: SpecFetcher (2) -
Gem
:: Specification (3) -
Gem
:: StreamUI (1) - GetoptLong (1)
- IO (3)
-
IRB
:: Context (2) - Logger (3)
-
Logger
:: Formatter (3) - Matrix (4)
-
Matrix
:: LUPDecomposition (1) -
MonitorMixin
:: ConditionVariable (5) -
Net
:: FTP (1) -
OpenSSL
:: PKey :: EC :: Group (2) - OptionParser (3)
- Pathname (4)
-
RDoc
:: Context (5) -
RDoc
:: Markup (1) -
RDoc
:: Markup :: Formatter (2) -
RDoc
:: TopLevel (2) -
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) -
Scanf
:: FormatSpecifier (11) -
Scanf
:: FormatString (10) - Shell (3)
-
Shell
:: CommandProcessor (3) -
Shell
:: Filter (3) -
Shell
:: ProcessController (1) -
Shell
:: SystemCommand (1) - String (5)
- StringIO (1)
- StringScanner (1)
-
Syslog
:: Logger (2) - Thread (1)
- Time (1)
- Vector (2)
-
WEBrick
:: HTTPUtils :: FormData (5) -
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 (2) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (8)
- MonitorMixin (3)
-
Net
:: HTTPHeader (2) -
OpenSSL
:: Buffering (1) -
OpenURI
:: OpenRead (2) -
OptionParser
:: Arguable (1) -
RDoc
:: Text (1)
キーワード
- == (1)
- === (1)
- =~ (1)
- [] (1)
-
add
_ class (1) -
add
_ class _ or _ module (2) -
add
_ module (1) -
add
_ platform _ option (1) -
add
_ tag (1) - broadcast (1)
- call (1)
- compact (1)
- compact= (1)
- conversion (1)
- convert (2)
-
count
_ space? (1) - cpu= (1)
-
datetime
_ format (2) -
datetime
_ format= (2) -
dc
_ format (1) -
dc
_ format= (1) -
dc
_ formats (1) -
def
_ exception (1) - delete (3)
- determinant (2)
-
each
_ classmodule (1) - element (1)
- fetch (1)
-
file
_ entries= (2) - filename (1)
- filename= (1)
-
find
_ matching (1) -
find
_ module _ named (2) - form (4)
-
form
_ data= (1) - format (1)
-
formatted
_ program _ filename (1) - formatter (1)
- formatter= (2)
-
gem
_ path= (2) - hermitian? (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
_ exit (1) -
mon
_ synchronize (1) -
multipart
_ form (4) - name (1)
- name= (1)
- norm (1)
- normal? (1)
- normalize (1)
-
normalize
_ comment (1) -
normalize
_ uri (1) - normalized (1)
- normalized= (1)
- open (4)
-
original
_ platform= (1) - os= (1)
- permutation (2)
- permutation? (1)
- permute (2)
- permute! (2)
- platform= (1)
-
point
_ conversion _ form (1) -
point
_ conversion _ form= (1) - printf (5)
- prune (1)
-
re
_ string (1) -
repeated
_ permutation (2) - requirements= (1)
-
return
_ format (1) -
return
_ format= (1) -
rm
_ f (1) -
rm
_ rf (1) - rmdir (6)
- rmtree (1)
- scanf (6)
- search (2)
-
search
_ with _ source (1) -
set
_ form _ data (1) - signal (1)
- space (1)
- spec= (2)
-
spec
_ count (1) - strftime (2)
-
string
_ left (1) - synchronize (1)
- task (1)
- terminate (4)
-
terminate
_ interaction (2) -
terminate
_ job (1) -
to
_ json (9) -
to
_ json _ raw (1) -
to
_ re (1) -
to
_ s (2) -
unicode
_ normalize (1) -
unicode
_ normalize! (1) -
unicode
_ normalized? (1) - unnormalized (1)
- version= (1)
- wait (1)
-
wait
_ until (1) -
wait
_ while (1) - width (2)
- width= (1)
- write (1)
検索結果
先頭5件
-
Scanf
:: FormatString # string _ left (9052.0) -
@todo
@todo -
Scanf
:: FormatString # to _ s (9052.0) -
@todo
@todo -
Gem
:: Platform # =~(other) -> bool (9040.0) -
自身と other のプラットフォームが一致する場合に真を返します。 そうでない場合は、偽を返します。
自身と other のプラットフォームが一致する場合に真を返します。
そうでない場合は、偽を返します。
other が文字列の場合は、まず Gem::Platform に変換してから比較を行います。
other が文字列でも Gem::Platform でもない場合は nil を返します。
@param other 比較対象のオブジェクトです。
@see Gem::Platform#=== -
MonitorMixin
:: ConditionVariable # wait _ while { . . . } -> () (9040.0) -
モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たしている間停止します。
モニタのロックを開放し、現在のスレッドを
ブロックで指定した条件を満たしている間停止します。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結果によってこのメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。
@raise ThreadError ロックを持っていないスレッドがこのメソッドを呼びだした場合に発生します
@see MonitorMixin::ConditionV... -
REXML
:: Formatters :: Default # write(node , output) -> () (9040.0) -
XML のノード node を output に出力します。
XML のノード node を output に出力します。
node には任意のXMLノードを指定できます。
@param node 出力するノード
@param output 出力先(IO など << で出力できるオブジェクト) -
REXML
:: Formatters :: Pretty # compact=(c) (9040.0) -
出力をコンパクトにするかどうかを設定します。
出力をコンパクトにするかどうかを設定します。
@param c コンパクトな出力をするかどうかを指定します。
@see REXML::Formatters::Pretty#compact -
REXML
:: Formatters :: Pretty # width=(w) (9040.0) -
出力のページ幅を設定します。
出力のページ幅を設定します。
@param w ページ幅の設定値
@see REXML::Formatters::Pretty#width -
Gem
:: Format # file _ entries=(file _ entries) (9022.0) -
Gem パッケージに含まれるファイルの配列をセットします。
Gem パッケージに含まれるファイルの配列をセットします。
@param file_entries -
Gem
:: Format # gem _ path=(path) (9022.0) -
Gem のパスをセットします。
Gem のパスをセットします。
@param path Gem のパスをセットします。 -
Gem
:: Format # spec=(spec) (9022.0) -
Gem の Gem::Specification をセットします。
Gem の Gem::Specification をセットします。
@param spec Gem の Gem::Specification をセットします。 -
Gem
:: OldFormat # file _ entries=(file _ entries) (9022.0) -
Gem パッケージに含まれるファイルの配列をセットします。
Gem パッケージに含まれるファイルの配列をセットします。
@param file_entries -
Gem
:: OldFormat # gem _ path=(path) (9022.0) -
Gem のパスをセットします。
Gem のパスをセットします。
@param path Gem のパスをセットします。 -
Gem
:: OldFormat # spec=(spec) (9022.0) -
Gem の Gem::Specification をセットします。
Gem の Gem::Specification をセットします。
@param spec Gem の Gem::Specification をセットします。 -
Gem
:: Platform # ==(other) -> bool (9022.0) -
自身と other が同じプラットフォームである場合に真を返します。 そうでない場合は偽を返します。
自身と other が同じプラットフォームである場合に真を返します。
そうでない場合は偽を返します。
同じプラットフォームであるとは、二つのプラットフォームの
CPU, OS, バージョンが同じであるということです。
@param other 比較対象のオブジェクトです。 -
Gem
:: Platform # ===(other) -> bool (9022.0) -
自身と other のプラットフォームが一致する場合に真を返します。 そうでない場合は、偽を返します。
自身と other のプラットフォームが一致する場合に真を返します。
そうでない場合は、偽を返します。
プラットフォームが一致するとは、以下の条件を満たすことです。
* 同じ CPU であること、または、どちらか一方が 'universal' であること
* 同じ OS であること
* 同じバージョンであること、または、どちらか一方がバージョンを持たないこと
@param other 比較対象のオブジェクトです。 -
Gem
:: Platform # cpu=(cpu) (9022.0) -
CPU のアーキテクチャをセットします。
CPU のアーキテクチャをセットします。
@param cpu CPU のアーキテクチャを指定します。 -
Gem
:: Platform # os=(os) (9022.0) -
OS の種類をセットします。
OS の種類をセットします。
@param os OS の種類を指定します。 -
Gem
:: Platform # version=(version) (9022.0) -
プラットフォームのバージョンをセットします。
プラットフォームのバージョンをセットします。
@param version プラットフォームのバージョンを指定します。 -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (9022.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
[1, 2, 3].to_json # => "[1,2,3]"
//} -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (9022.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"false" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.to_json # => "false"
//} -
JSON
:: Generator :: GeneratorMethods :: Float # to _ json(state _ or _ hash = nil) -> String (9022.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
(1.0).to_json # => "1.0"
//} -
JSON
:: Generator :: GeneratorMethods :: Hash # to _ json(state _ or _ hash = nil) -> String (9022.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
person = { "name" => "tanaka", "age" => 19 }
person.to_json # ... -
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (9022.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
10.to_json # => "10"
//} -
JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String (9022.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"null" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
nil.to_json # => "null"
//} -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (9022.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String (9022.0) -
自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
@see JSON::Generator::GeneratorMethods::String#to_json_raw_object, JSON::Generator::GeneratorMethods::Hash#to_json -
JSON
:: Generator :: GeneratorMethods :: TrueClass # to _ json(state _ or _ hash = nil) -> String (9022.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"true" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
true.to_json # => "true"
//} -
MonitorMixin
# mon _ exit -> () (9022.0) -
モニターのロックを解放します。
モニターのロックを解放します。
mon_enter でロックした回数だけ mon_exit を
呼ばなければモニターは解放されません。
モニターが解放されればモニターのロック待ちになっていた
スレッドが一つ実行を再開します。
@raise ThreadError ロックを持っていないスレッドが呼びだした場合に発生します -
MonitorMixin
# mon _ synchronize { . . . } -> object (9022.0) -
モニターをロックし、ブロックを実行します。実行後に必ずモニターのロックを解放します。
モニターをロックし、ブロックを実行します。実行後に必ずモニターのロックを解放します。
ブロックの評価値を返り値として返します。
@see MonitorMixin#mon_enter -
MonitorMixin
# synchronize { . . . } -> object (9022.0) -
モニターをロックし、ブロックを実行します。実行後に必ずモニターのロックを解放します。
モニターをロックし、ブロックを実行します。実行後に必ずモニターのロックを解放します。
ブロックの評価値を返り値として返します。
@see MonitorMixin#mon_enter -
MonitorMixin
:: ConditionVariable # broadcast -> () (9022.0) -
その条件変数で 待っている全てのスレッドの実行を再開します。
その条件変数で
待っている全てのスレッドの実行を再開します。
@see MonitorMixin::ConditionVariable#signal -
MonitorMixin
:: ConditionVariable # signal -> () (9022.0) -
その条件変数で待っているスレッドがあれば実行を再開させます。
その条件変数で待っているスレッドがあれば実行を再開させます。
複数のスレッドが待っている場合には1つのスレッドのみ
実行を再開します。
@see MonitorMixin::ConditionVariable#broadcast -
MonitorMixin
:: ConditionVariable # wait _ until { . . . } -> () (9022.0) -
モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たすまで停止します。
モニタのロックを開放し、現在のスレッドを
ブロックで指定した条件を満たすまで停止します。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結果によってこのメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。
@see MonitorMixin::ConditionVariable#wait -
RDoc
:: Markup :: Formatter # convert(content) -> () (9022.0) -
content で指定された文字列を変換します。
content で指定された文字列を変換します。
@param content 変換する文字列を指定します。 -
REXML
:: Formatters :: Pretty # compact -> bool (9022.0) -
出力をコンパクトにするかどうかを返します。
出力をコンパクトにするかどうかを返します。
これが真の場合、出力の空白をできる限り削除しようとします。
デフォルト値は false です。
@see REXML::Formatters::Pretty#compact= -
REXML
:: Formatters :: Pretty # width -> Integer (9022.0) -
出力のページ幅を返します。
出力のページ幅を返します。
デフォルトは80です。
@see REXML::Formatters::Pretty#width= -
WEBrick
:: HTTPUtils :: FormData # [](header) -> String | nil (9022.0) -
自身が multipart/form-data なデータの場合に、header で指定された ヘッダの値を文字列で返します。無ければ nil を返します。
自身が multipart/form-data なデータの場合に、header で指定された
ヘッダの値を文字列で返します。無ければ 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() -
WEBrick
:: HTTPUtils :: FormData # filename -> String | nil (9022.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) (9022.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 # name -> String | nil (9022.0) -
フォームデータの name 属性を文字列で表すアクセサです。
フォームデータの name 属性を文字列で表すアクセサです。
@param value フォームデータの name 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].name #=> "q"
end
end
MyCGI.new.start() -
WEBrick
:: HTTPUtils :: FormData # name=(value) (9022.0) -
フォームデータの name 属性を文字列で表すアクセサです。
フォームデータの name 属性を文字列で表すアクセサです。
@param value フォームデータの name 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].name #=> "q"
end
end
MyCGI.new.start() -
RDoc
:: Context # add _ class _ or _ module(collection , class _ type , name , superclass = nil) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (676.0) -
collection に name で指定したクラス、モジュールを追加します。
collection に name で指定したクラス、モジュールを追加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param su... -
RDoc
:: TopLevel # add _ class _ or _ module(collection , class _ type , name , superclass) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (676.0) -
collection に name で指定したクラス、モジュールを追加します。
collection に name で指定したクラス、モジュールを追加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param su... -
RDoc
:: Context # add _ module(class _ type , name) -> RDoc :: NormalModule | RDoc :: SingleClass | RDoc :: NormalClass (658.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] (622.0) -
追加されたクラス、モジュールに対してブロックを評価します。
追加されたクラス、モジュールに対してブロックを評価します。
@see RDoc::Context#classes, RDoc::Context#modules -
OpenURI
:: OpenRead # open(mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO (412.0) -
自身が表すリソースを取得して StringIO オブジェクトとして返します。 OpenURI.open_uri(self, *rest, &block) と同じです。
自身が表すリソースを取得して StringIO オブジェクトとして返します。
OpenURI.open_uri(self, *rest, &block) と同じです。
ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返します。
返り値である StringIO オブジェクトは OpenURI::Meta モジュールで extend されています。
@param mode モードを文字列で与えます。Kernel.#open と同じです。
@param perm 無視されます... -
OpenURI
:: OpenRead # open(mode = & # 39;r& # 39; , perm = nil , options = {}) {|sio| . . . } -> nil (412.0) -
自身が表すリソースを取得して StringIO オブジェクトとして返します。 OpenURI.open_uri(self, *rest, &block) と同じです。
自身が表すリソースを取得して StringIO オブジェクトとして返します。
OpenURI.open_uri(self, *rest, &block) と同じです。
ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返します。
返り値である StringIO オブジェクトは OpenURI::Meta モジュールで extend されています。
@param mode モードを文字列で与えます。Kernel.#open と同じです。
@param perm 無視されます... -
IO
# printf(format , *arg) -> nil (394.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... -
Gem
:: SourceInfoCache # search(pattern , platform _ only = false , all = false) -> [Gem :: Specification] (376.0) -
与えられた条件を満たす Gem::Specification のリストを返します。
与えられた条件を満たす Gem::Specification のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param platform_only 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。
@param all 真を指定するとキャッシュを更新してから検索を実行します。
@see Gem::SourceIndex#search -
Gem
:: SourceInfoCache # search _ with _ source(pattern , only _ platform = false , all = false) -> Array (376.0) -
与えられた条件を満たす Gem::Specification と URL のリストを返します。
与えられた条件を満たす Gem::Specification と URL のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param only_platform 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。
@param all 真を指定するとキャッシュを更新してから検索を実行します。
@return 第一要素を Gem::Specification、第二要素を取得元の URL とする配列を要素とする配列を返します。 -
Gem
:: SpecFetcher # fetch(dependency , all = false , matching _ platform = true) -> Array (376.0) -
依存関係を満たす gemspec の配列を返します。
依存関係を満たす gemspec の配列を返します。
@param dependency 依存関係を指定します。
@param all 真を指定するとマッチする全てのバージョンの情報を返します。
@param matching_platform 偽を指定すると全てのプラットフォームの情報を返します。
@see Gem::Dependency -
Gem
:: SpecFetcher # find _ matching(dependency , all = false , matching _ platform = true) -> Array (376.0) -
依存関係を満たす gemspec の名前の配列を返します。
依存関係を満たす gemspec の名前の配列を返します。
@param dependency 依存関係を指定します。
@param all 真を指定するとマッチする全てのバージョンの情報を返します。
@param matching_platform 偽を指定すると全てのプラットフォームの情報を返します。
@see Gem::Dependency -
Exception2MessageMapper
# def _ e2message(exception _ class , message _ format) -> Class (358.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
すでに存在する例外クラス exception_class に、
エラーメッセージ用フォーマット message_format を関連づけます。
このフォーマットは Exception2MessageMapper#Raise,
Exception2MessageMapper#Fail で使用します。
@param exception_class メッセージを登録する例外クラスを指定します。
@param message_format メッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます... -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (358.0) -
exception_name という名前の例外クラスを定義します。
exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定します。
省略すると StandardError を使用します。 -
Kernel
# message(format , *arg) -> nil (358.0) -
Kernel.#printf と同じように標準出力にメッセージを出力します。 メッセージ出力後すぐに IO#flush します。
Kernel.#printf と同じように標準出力にメッセージを出力します。
メッセージ出力後すぐに IO#flush します。
$VERBOSE が真のときは何もしません。
@param format フォーマット文字列です。
@param arg フォーマットされる引数です。
@see Kernel.#printf -
OpenSSL
:: Buffering # printf(format , *args) -> nil (358.0) -
format に従い引数 args を文字列に変換して 出力します。
format に従い引数 args を文字列に変換して
出力します。
IO#printf と同様です。
@param format 出力フォーマット文字列
@param arg 出力するオブジェクト
@see Kernel.#printf -
RDoc
:: Context # add _ class(class _ type , name , superclass) -> RDoc :: SingleClass | RDoc :: NormalClass (358.0) -
引数で指定したクラスを追加します。
引数で指定したクラスを追加します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追加するクラスの親クラスを RDoc::NormalClass オ
ブジェクトで指定します。 -
StringIO
# printf(format , *obj) -> nil (358.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 ... -
Zlib
:: GzipWriter # printf(format , *args) -> nil (358.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 (340.0) -
C 言語の printf と同じように、format に従い引数を 文字列に変換して処理対象のファイルに出力します。
C 言語の printf と同じように、format に従い引数を
文字列に変換して処理対象のファイルに出力します。
c:ARGF#inplace時にのみ使用できます。
また $stdout への代入の影響を受けません。
それ以外は出力先を指定しない形式の Kernel.#printf と同じです。
@param format フォーマット文字列です。
@param arg フォーマットされる引数です。 -
Gem
:: SourceIndex # search(gem _ pattern , platform _ only = false) -> [Gem :: Specification] (340.0) -
引数で指定された条件を満たす Gem のリストを返します。
引数で指定された条件を満たす Gem のリストを返します。
@param gem_pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param platform_only 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。 -
Kernel
# scanf(format) -> Array (340.0) -
STDIN.scanf と同じです。 IO#scanf、Stdin#scanfも参照してください。
STDIN.scanf と同じです。
IO#scanf、Stdin#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
@see IO#scanf, Stdin#scanf -
Kernel
# scanf(format) {|*ary| . . . } -> Array (340.0) -
STDIN.scanf と同じです。 IO#scanf、Stdin#scanfも参照してください。
STDIN.scanf と同じです。
IO#scanf、Stdin#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。
@see IO#scanf, Stdin#scanf -
RDoc
:: Markup # convert(str , formatter) -> object | "" (340.0) -
str で指定された文字列を formatter に変換させます。
str で指定された文字列を formatter に変換させます。
@param str 変換する文字列を指定します。
@param formatter SM::ToHtml、SM::ToLaTeX などのインスタンス
を指定します。
変換結果は formatter によって文字列や配列を返します。 -
Date
# strftime(format = & # 39;%F& # 39;) -> String (322.0) -
与えられた雛型で日付を書式づけます。
与えられた雛型で日付を書式づけます。
つぎの変換仕様をあつかいます:
%A, %a, %B, %b, %C, %c, %D, %d, %e, %F, %G, %g, %H, %h, %I, %j, %k, %L, %l,
%M, %m, %N, %n, %P, %p, %Q, %R, %r, %S, %s, %T, %t, %U, %u, %V, %v, %W, %w, %X,
%x, %Y, %y, %Z, %z, %:z, %::z, %:::z, %%, %+
GNU 版にあるような幅指定などもできます。
strftime(3)、および Date.strptime も参照してくだ... -
Gem
:: Specification # requirements=(informations) (322.0) -
この Gem パッケージを動作させるのに必要な条件をセットします。 これはユーザのためのシンプルな情報をセットします。
この Gem パッケージを動作させるのに必要な条件をセットします。
これはユーザのためのシンプルな情報をセットします。
@param informations 情報を文字列の配列で指定します。 -
IO
# scanf(format) -> Array (322.0) -
String#scanfも参照してください。
String#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。 -
IO
# scanf(format) {|*ary| . . . } -> Array (322.0) -
String#scanfも参照してください。
String#scanfも参照してください。
@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。 -
Pathname
# open(mode = & # 39;r& # 39; , perm = 0666) -> File (322.0) -
File.open(self.to_s, *args, &block) と同じです。
File.open(self.to_s, *args, &block) と同じです。
@see File.open -
Pathname
# open(mode = & # 39;r& # 39; , perm = 0666) {|file| . . . } -> object (322.0) -
File.open(self.to_s, *args, &block) と同じです。
File.open(self.to_s, *args, &block) と同じです。
@see File.open -
RDoc
:: Context # find _ module _ named(name) -> RDoc :: NormalModule | nil (322.0) -
追加された RDoc::NormalModule から引数で指定した名前のモジュール を検索します。見つからなかった場合は nil を返します。
追加された RDoc::NormalModule から引数で指定した名前のモジュール
を検索します。見つからなかった場合は nil を返します。
@param name モジュールの名前を文字列で指定します。 -
RDoc
:: TopLevel # find _ module _ named(name) -> RDoc :: NormalModule (322.0) -
RDoc が収集したクラスの内、name で指定した名前のモジュールを返します。 見つからなかった場合は nil を返します。
RDoc が収集したクラスの内、name で指定した名前のモジュールを返します。
見つからなかった場合は nil を返します。
@param name モジュール名を文字列で指定します。 -
String
# scanf(format) -> Array (322.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェクトの配列を引数に、ブロックを
実行します。このとき、ブロックの実行結果を要素とする配列を返します。
requir... -
String
# scanf(format) {|*ary| . . . } -> Array (322.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]
ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェクトの配列を引数に、ブロックを
実行します。このとき、ブロックの実行結果を要素とする配列を返します。
requir... -
Time
# strftime(format) -> String (322.0) -
時刻を format 文字列に従って文字列に変換した結果を返します。
時刻を format 文字列に従って文字列に変換した結果を返します。
@param format フォーマット文字列を指定します。使用できるものは 以下の通りです。
* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日の省略名(Sun, Mon ... )
* %B: 月の名称(January, February ... )
* %b: 月の省略名(Jan, Feb ... )
* %C: 世紀 (2009年であれば 20)
* %c: 日付と時刻 (%a %b %e %T %Y)
* %D: 日付 (%m/%d/%y)
* ... -
Kernel
# task(*args) { . . . } -> Rake :: Task (58.0) -
Rake タスクを定義します。
Rake タスクを定義します。
@param args タスク名と依存タスクを指定します。
例:
task :clobber => [:clean] do
rm_rf "html"
end
@see Rake::Task.define_task -
Shell
# delete(*filename) -> Integer (43.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: CommandProcessor # delete(*filename) -> Integer (43.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: Filter # delete(*filename) -> Integer (43.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete