ライブラリ
- ビルトイン (21)
- benchmark (1)
-
cgi
/ html (8) - date (1)
- e2mmap (2)
- getoptlong (2)
-
irb
/ context (2) - json (11)
- logger (7)
- matrix (8)
- mkmf (3)
- monitor (14)
-
net
/ ftp (2) -
net
/ http (4) - open-uri (2)
- openssl (3)
- optparse (4)
- pathname (4)
- psych (1)
- rake (1)
-
rdoc
/ context (8) -
rdoc
/ markup (1) -
rdoc
/ markup / formatter (2) -
rdoc
/ text (1) -
rdoc
/ top _ level (3) - resolv (1)
-
rexml
/ document (8) - rss (8)
-
rubygems
/ format (6) -
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 (6) -
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 (3) - un (2)
- uri (2)
-
webrick
/ httputils (11) -
webrick
/ log (2) - zlib (1)
クラス
-
ARGF
. class (1) - Array (4)
-
Benchmark
:: Tms (1) - Date (1)
-
Gem
:: Format (6) -
Gem
:: Installer (1) -
Gem
:: OldFormat (6) -
Gem
:: Platform (11) -
Gem
:: RemoteFetcher (1) -
Gem
:: SourceIndex (1) -
Gem
:: SourceInfoCache (2) -
Gem
:: SpecFetcher (2) -
Gem
:: Specification (6) -
Gem
:: StreamUI (1) - GetoptLong (2)
- Hash (8)
- IO (3)
-
IRB
:: Context (2) - Logger (4)
-
Logger
:: Formatter (3) - Matrix (5)
-
Matrix
:: LUPDecomposition (1) -
MonitorMixin
:: ConditionVariable (5) -
Net
:: FTP (1) -
Net
:: FTP :: MLSxEntry (1) -
Net
:: HTTPGenericRequest (2) -
OpenSSL
:: PKey :: EC :: Group (2) - OptionParser (3)
- Pathname (4)
-
Process
:: Status (1) -
Psych
:: Nodes :: Node (1) -
RDoc
:: Context (8) -
RDoc
:: Markup (1) -
RDoc
:: Markup :: Formatter (2) -
RDoc
:: Options (3) -
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 (11) -
Scanf
:: FormatString (10) - Shell (3)
-
Shell
:: CommandProcessor (3) -
Shell
:: Filter (3) -
Shell
:: ProcessController (1) -
Shell
:: SystemCommand (1) - String (6)
- 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
:: 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 (8)
- MonitorMixin (9)
-
Net
:: HTTPHeader (2) -
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) -
add
_ tag (1) -
append
_ data (1) - broadcast (1)
- call (2)
- classes (1)
- compact (1)
- compact= (1)
- conversion (1)
- convert (2)
-
count
_ space? (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 (2)
-
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)
-
form
_ data= (1) - format (1)
-
formatted
_ program _ filename (1) - formatter (3)
- formatter= (3)
-
gem
_ path (2) -
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)
- list (1)
- match (2)
- matched (1)
-
matched
_ count (1) -
matched
_ string (1) -
mid
_ match? (1) - modules (1)
-
mon
_ enter (1) -
mon
_ exit (1) -
mon
_ locked? (1) -
mon
_ owned? (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)
- os= (1)
- perm (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 (6)
- rmtree (1)
- scanf (6)
- search (2)
-
search
_ with _ source (1) -
set
_ form _ data (1) - signal (1)
- space (1)
- spec (2)
- spec= (2)
-
spec
_ count (1) - strftime (2)
-
string
_ left (1) - synchronize (1)
- task (1)
- terminate (4)
-
terminate
_ interaction (2) -
terminate
_ job (1) - terminated? (1)
- termsig (1)
-
time
_ format (1) -
time
_ format= (1) -
to
_ a (1) -
to
_ ary (1) -
to
_ json (9) -
to
_ json _ raw (1) -
to
_ json _ raw _ object (1) -
to
_ re (1) -
to
_ s (4) - transform (1)
-
transform
_ keys (2) -
transform
_ keys! (2) -
transform
_ values (2) -
transform
_ values! (2) -
try
_ mon _ enter (1) -
unicode
_ normalize (1) -
unicode
_ normalize! (1) -
unicode
_ normalized? (1) - unnormalized (1)
- unpack1 (1)
- version (1)
- version= (1)
- wait (1)
-
wait
_ until (1) -
wait
_ while (1) - width (2)
- width= (1)
- write (1)
検索結果
先頭5件
-
Kernel
# rm -> () (54343.0) -
ファイルやディレクトリを削除します。
ファイルやディレクトリを削除します。
ruby -run -e rm -- [OPTION] FILE
-f 存在しないファイルを無視します
-r ディレクトリを再帰的にたどってファイルやディレクトリを削除します
-v 詳細表示
@see rm(1) -
Shell
# rm(*filename) -> Integer (45307.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: CommandProcessor # rm(*filename) -> Integer (45307.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: Filter # rm(*filename) -> Integer (45307.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Logger
:: Formatter # datetime _ format=(format) (27604.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... -
Logger
:: Formatter # datetime _ format -> String (27304.0) -
ログの日時フォーマットを取得します。
ログの日時フォーマットを取得します。
@see Time#strftime -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") -> String (18604.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 (18604.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 # multipart _ form(action = nil , enctype = "multipart / form-data") -> String (18604.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 (18604.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 # original _ platform=(platform) (18604.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
@param platform プラットフォームを指定します。 -
Gem
:: Specification # platform=(platform) (18604.0) -
この Gem パッケージを使用できるプラットフォームをセットします。
この Gem パッケージを使用できるプラットフォームをセットします。
@param platform この Gem パッケージを使用できるプラットフォームを指定します。
デフォルトは Gem::Platform::RUBY です。
@see Gem::Platform::RUBY -
Logger
# datetime _ format=(format) (18604.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) (18604.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... -
String
# unicode _ normalize!(form = :nfc) -> self (18604.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列に置き換えます。
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し
た文字列に置き換えます。
(gsub!などと異なり)変換が行なわれなくても self を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合
に発生します。
//e... -
String
# unicode _ normalize(form = :nfc) -> String (18604.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列を返します。
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し
た文字列を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合
に発生します。
このメソッドでの "Unicode 文字列" とは、UTF-8、UTF-16BE/LE... -
String
# unicode _ normalized?(form = :nfc) -> bool (18604.0) -
self が引数 form で指定された正規化形式で Unicode 正規化された文字列か どうかを返します。
self が引数 form で指定された正規化形式で Unicode 正規化された文字列か
どうかを返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合
に発生します。
//emlist[例][ruby]{
"a\u0300".unicode_normalized? ... -
Syslog
:: Logger # formatter -> Logger :: Formatter | Proc (18604.0) -
ログを出力する際に使用するフォーマッターを取得します。
ログを出力する際に使用するフォーマッターを取得します。
デフォルトでは Logger::Formatter オブジェクトを返します。
@see Syslog::Logger#formatter= -
Syslog
:: Logger # formatter=(formatter) (18604.0) -
ログを出力する際に使用するフォーマッターをセットします。
ログを出力する際に使用するフォーマッターをセットします。
@param formatter 4 つの引数 (severity, time, program name, message) を
受け取る call メソッドを 持つオブジェクトを指定します。
引数 formatter が持つ call メソッドは以下の 4 つの引数 (severity,
time, program name, message) を受けとります。
: severity
このメッセージのログレベル(Logger::Severity 参照)。
: time
このメッ... -
Kernel
# rm _ f(*files) -> () (18391.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) -> () (18391.0) -
FileUtils.#rm_rf のラッパーメソッドです。
FileUtils.#rm_rf のラッパーメソッドです。
@param files ファイルのリストか、Dir.globで利用できる glob パターンを指定します。
最後の要素が Hash の場合は FileUtils.#rm_f の第二引数になります。
@see FileUtils.#rm_rf, Dir.glob -
Pathname
# rmtree -> nil (18370.0) -
FileUtils.rm_r(self.to_s) と同じです。
FileUtils.rm_r(self.to_s) と同じです。
@see FileUtils.#rm_r -
Array
# permutation(n = self . length) -> Enumerator (18304.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
引数を省略した場合は配列の要素数と同じサイズの順列に対してブロックを実
行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
... -
Array
# permutation(n = self . length) { |p| block } -> self (18304.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
引数を省略した場合は配列の要素数と同じサイズの順列に対してブロックを実
行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
... -
Array
# repeated _ permutation(n) -> Enumerator (18304.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby... -
Array
# repeated _ permutation(n) { |p| . . . } -> self (18304.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby... -
Benchmark
:: Tms # format(fmtstr = nil , *args) -> String (18304.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... -
CGI
:: HtmlExtension # form(attributes) -> String (18304.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 (18304.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 # multipart _ form(attributes) -> String (18304.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 (18304.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> -
DublinCoreModel
# dc _ format (18304.0) -
@todo
@todo -
DublinCoreModel
# dc _ format= (18304.0) -
@todo
@todo -
DublinCoreModel
# dc _ formats (18304.0) -
@todo
@todo -
Gem
:: Installer # formatted _ program _ filename(filename) -> String (18304.0) -
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
@param filename 実行ファイルのファイル名を指定します。 -
Gem
:: RemoteFetcher # normalize _ uri(uri) -> String (18304.0) -
URI のスキーム部分が欠けている場合に "http://" を補って返します。
URI のスキーム部分が欠けている場合に "http://" を補って返します。
@param uri URI 文字列を指定します。 -
Gem
:: Specification # normalize -> [String] (18304.0) -
この Gem パッケージの含まれるファイルリストから重複を取り除きます。
この Gem パッケージの含まれるファイルリストから重複を取り除きます。 -
Gem
:: Specification # original _ platform -> String (18304.0) -
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。
この属性は古いバージョンの Gem パッケージをアンインストールするために残されています。 -
Gem
:: Specification # platform -> String (18304.0) -
この Gem パッケージを使用できるプラットフォームを返します。
この Gem パッケージを使用できるプラットフォームを返します。 -
Gem
:: StreamUI # terminate _ interaction(status = 0) -> () (18304.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param status 終了ステータスを指定します。デフォルトは 0 (成功) です。
@raise Gem::SystemExitException このメソッドを呼び出すと必ず発生する例外です。 -
Gem
:: UserInteraction # terminate _ interaction(*args) -> () (18304.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param args 委譲先のメソッドに与える引数です。 -
Gem
:: VersionOption # add _ platform _ option(task = command , *wrap) (18304.0) -
option parser に対して --platform オプションを追加します。
option parser に対して --platform オプションを追加します。
@param task コマンド名を指定します。デフォルト値はインクルードされる側のクラスで指定されます。
@param wrap Gem::Command#add_option に渡すその他のオプションを指定します。 -
GetoptLong
# terminate -> self (18304.0) -
オプションの処理を、強制的に終了させます。ただし、エラーが起き ている状態でこのメソッドを起動しても、終了させることはできません。
オプションの処理を、強制的に終了させます。ただし、エラーが起き
ている状態でこのメソッドを起動しても、終了させることはできません。
すでにオプションの処理が終了しているときは、このメソッドは何も行いません。
@raise RuntimeError エラーが起きている状態でこのメソッドを起動すると、発生します -
GetoptLong
# terminated? -> true | false (18304.0) -
エラーが起きずにオプションの処理が終了しているときは真が 返ります。それ以外のときは、偽が返ります。
エラーが起きずにオプションの処理が終了しているときは真が
返ります。それ以外のときは、偽が返ります。 -
Hash
# transform _ keys -> Enumerator (18304.0) -
すべてのキーに対してブロックを呼び出した結果で置き換えたハッシュを返します。 値は変化しません。
すべてのキーに対してブロックを呼び出した結果で置き換えたハッシュを返します。
値は変化しません。
//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_keys {|k| k.to_s } # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys(&:to_s) # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys.with_index {|k, i| "#{k}.#{i}" }
... -
Hash
# transform _ keys {|key| . . . } -> Hash (18304.0) -
すべてのキーに対してブロックを呼び出した結果で置き換えたハッシュを返します。 値は変化しません。
すべてのキーに対してブロックを呼び出した結果で置き換えたハッシュを返します。
値は変化しません。
//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_keys {|k| k.to_s } # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys(&:to_s) # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys.with_index {|k, i| "#{k}.#{i}" }
... -
Hash
# transform _ keys! -> Enumerator (18304.0) -
すべてのキーに対してブロックを呼び出した結果でハッシュのキーを変更します。 値は変化しません。
すべてのキーに対してブロックを呼び出した結果でハッシュのキーを変更します。
値は変化しません。
@return transform_keys! は常に self を返します。
ブロックが与えられなかった場合は、Enumerator オブジェクトを
返します。
//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_keys! {|k| k.to_s } # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys!(&:to_sym) # => {:a... -
Hash
# transform _ keys! {|key| . . . } -> self (18304.0) -
すべてのキーに対してブロックを呼び出した結果でハッシュのキーを変更します。 値は変化しません。
すべてのキーに対してブロックを呼び出した結果でハッシュのキーを変更します。
値は変化しません。
@return transform_keys! は常に self を返します。
ブロックが与えられなかった場合は、Enumerator オブジェクトを
返します。
//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_keys! {|k| k.to_s } # => {"a"=>1, "b"=>2, "c"=>3}
h.transform_keys!(&:to_sym) # => {:a... -
Hash
# transform _ values -> Enumerator (18304.0) -
すべての値に対してブロックを呼び出した結果で置き換えたハッシュを返します。 キーは変化しません。
すべての値に対してブロックを呼び出した結果で置き換えたハッシュを返します。
キーは変化しません。
@return 置き換えたハッシュを返します。
ブロックが与えられなかった場合は、Enumerator オブジェクトを
返します。
//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_values {|v| v * v + 1 } #=> { a: 2, b: 5, c: 10 }
h.transform_values(&:to_s) #=> { a: "1", b: "2", ... -
Hash
# transform _ values {|value| . . . } -> Hash (18304.0) -
すべての値に対してブロックを呼び出した結果で置き換えたハッシュを返します。 キーは変化しません。
すべての値に対してブロックを呼び出した結果で置き換えたハッシュを返します。
キーは変化しません。
@return 置き換えたハッシュを返します。
ブロックが与えられなかった場合は、Enumerator オブジェクトを
返します。
//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_values {|v| v * v + 1 } #=> { a: 2, b: 5, c: 10 }
h.transform_values(&:to_s) #=> { a: "1", b: "2", ... -
Hash
# transform _ values! -> Enumerator (18304.0) -
すべての値に対してブロックを呼び出した結果でハッシュの値を変更します。 キーは変化しません。
すべての値に対してブロックを呼び出した結果でハッシュの値を変更します。
キーは変化しません。
@return transform_values! は常に self を返します。
ブロックが与えられなかった場合は、Enumerator オブジェクトを
返します。
//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_values! {|v| v * v + 1 } #=> { a: 2, b: 5, c: 10 }
h.transform_values!(&:to_s) #=> ... -
Hash
# transform _ values! {|value| . . . } -> self (18304.0) -
すべての値に対してブロックを呼び出した結果でハッシュの値を変更します。 キーは変化しません。
すべての値に対してブロックを呼び出した結果でハッシュの値を変更します。
キーは変化しません。
@return transform_values! は常に self を返します。
ブロックが与えられなかった場合は、Enumerator オブジェクトを
返します。
//emlist[例][ruby]{
h = { a: 1, b: 2, c: 3 }
h.transform_values! {|v| v * v + 1 } #=> { a: 2, b: 5, c: 10 }
h.transform_values!(&:to_s) #=> ... -
IRB
:: Context # return _ format -> String (18304.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットを文字列で返します。
irb のプロンプトでの評価結果を表示する際のフォーマットを文字列で返します。
@see IRB::Context#return_format=, print_format -
IRB
:: Context # return _ format=(val) (18304.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
@see IRB::Context#return_format, print_format
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。 -
Kernel
# rmdir -> () (18304.0) -
空のディレクトリを削除します。
空のディレクトリを削除します。
ruby -run -e rmdir -- [OPTION] DIR
-p DIR で指定されたディレクトリとその上位ディレクトリを削除します
-v 詳細表示
@see rmdir(1) -
Logger
# datetime _ format -> String | nil (18304.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
# formatter -> String (18304.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 =... -
Matrix
# hermitian? -> bool (18304.0) -
行列がエルミートならば true を返します。
行列がエルミートならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します -
Matrix
# normal? -> bool (18304.0) -
行列が正規行列ならば true を返します。
行列が正規行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します -
Matrix
# permutation? -> bool (18304.0) -
行列が置換行列ならば true を返します。
行列が置換行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します -
Net
:: FTP # rmdir(dirname) -> nil (18304.0) -
リモートサーバ上のディレクトリを削除します。
リモートサーバ上のディレクトリを削除します。
@param dirname 削除するディレクトリ名を文字列で指定します。
@raise Net::FTPReplyError 応答コードが正しくない場合に発生します。削除に失敗した場合に発生します。 -
Net
:: FTP :: MLSxEntry # perm -> String|nil (18304.0) -
パーミッション文字列を返します。
パーミッション文字列を返します。
情報がない場合は nil を返しますが、通常は
あるはずです。 -
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (18304.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... -
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (18304.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... -
Net
:: HTTPHeader # form _ data=(params) (18304.0) -
HTMLのフォームのデータ params から ヘッダフィールドとボディを設定します。
HTMLのフォームのデータ params から
ヘッダフィールドとボディを設定します。
ヘッダフィールド Content-Type: には
'application/x-www-form-urlencoded' が設定されます。
@param params HTML のフォームデータの Hash を与えます。
@param sep データのセパレータを文字列で与えます。
//emlist[例 form_data][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Ne... -
Net
:: HTTPHeader # set _ form _ data(params , sep = & # 39;&& # 39;) -> () (18304.0) -
HTMLのフォームのデータ params から ヘッダフィールドとボディを設定します。
HTMLのフォームのデータ params から
ヘッダフィールドとボディを設定します。
ヘッダフィールド Content-Type: には
'application/x-www-form-urlencoded' が設定されます。
@param params HTML のフォームデータの Hash を与えます。
@param sep データのセパレータを文字列で与えます。
//emlist[例 form_data][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Ne... -
OpenSSL
:: PKey :: EC :: Group # point _ conversion _ form -> Symbol (18304.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) (18304.0) -
点のエンコーディング方式を設定します。
点のエンコーディング方式を設定します。
以下のいずれかを設定します。
* :compressed
* :uncompressed
* :hybrid
詳しくは X9.62 (ECDSA) などを参照してください。
@param sym 設定する方式(Symbol)
@see OpenSSL::PKey::EC::Group#point_conversion_form -
OptionParser
# permute!(argv = self . default _ argv , into: nil) -> [String] (18304.0) -
与えられた argv を破壊的にパースします。argv からオプションがすべて取り除かれます。 オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。 argv を返します。
与えられた argv を破壊的にパースします。argv からオプションがすべて取り除かれます。
オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。
argv を返します。
下の例で言うと、order と違いコマンドの引数 somefile よりも後ろにオプションを置くことが
できます。
@param argv パースしたい引数を文字列の配列で指定します。
@param into オプションを格納するハッシュを指定します。
指定したハッシュにはオプションの名前をキーとして、OptionParser#onに渡されたブ... -
OptionParser
# permute(*args , into: nil) -> [String] (18304.0) -
与えられた argv をパースします。 オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。 argv からオプションを取り除いたものを返します。
与えられた argv をパースします。
オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。
argv からオプションを取り除いたものを返します。
下の例で言うと、order と違いコマンドの引数 somefile よりも後ろにオプションを置くことが
できます。
@param argv パースしたい引数を文字列の配列で指定します。
@param args パースしたい引数を順に文字列として与えます。
@param into オプションを格納するハッシュを指定します。
指定したハッシュにはオプションの名前をキーとし... -
OptionParser
# permute(argv , into: nil) -> [String] (18304.0) -
与えられた argv をパースします。 オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。 argv からオプションを取り除いたものを返します。
与えられた argv をパースします。
オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。
argv からオプションを取り除いたものを返します。
下の例で言うと、order と違いコマンドの引数 somefile よりも後ろにオプションを置くことが
できます。
@param argv パースしたい引数を文字列の配列で指定します。
@param args パースしたい引数を順に文字列として与えます。
@param into オプションを格納するハッシュを指定します。
指定したハッシュにはオプションの名前をキーとし... -
OptionParser
:: Arguable # permute! -> [String] (18304.0) -
自身を破壊的にパースし、パースされずに残った引数を文字列の配列として返します。 OptionParser#permute! を参照して下さい。
自身を破壊的にパースし、パースされずに残った引数を文字列の配列として返します。
OptionParser#permute! を参照して下さい。
@raise OptionParser::ParseError 自身のパースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスの例外になります。
//emlist[][ruby]{
require 'optparse'
o = nil
ARGV.options.on(... -
Pathname
# rmdir -> 0 (18304.0) -
Dir.rmdir(self.to_s) と同じです。
Dir.rmdir(self.to_s) と同じです。
@see Dir.rmdir -
Process
:: Status # termsig -> Integer | nil (18304.0) -
signaled? が真の場合プロセスを終了させたシグナル番号を、 そうでない場合は nil を返します。
signaled? が真の場合プロセスを終了させたシグナル番号を、
そうでない場合は nil を返します。 -
RDoc
:: Options # formatter -> nil (18304.0) -
使用されていません。常に nil を返します。
使用されていません。常に nil を返します。 -
RDoc
:: Options # formatter=(val) (18304.0) -
使用されていません。
使用されていません。 -
RDoc
:: Options # image _ format -> String (18304.0) -
コマンドライン引数の --image-format オプションで指定した名前を文字列の 配列で返します。
コマンドライン引数の --image-format オプションで指定した名前を文字列の
配列で返します。
指定しなかった場合は 'png' を返します。 -
RDoc
:: Text # normalize _ comment(text) -> String (18304.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) (18304.0) -
正規化された属性値を設定します。
正規化された属性値を設定します。
通常はライブラリが自動的にこの値を設定するので
ユーザはこれを使う必要はないでしょう。
@param value 正規化された属性値 -
REXML
:: Entity # normalized -> String | nil (18304.0) -
正規化された(normalized)実体の値を返します。
正規化された(normalized)実体の値を返します。
すなわち、一切の実体参照を展開していない値を返します。
外部実体(external entity)宣言の場合は nil を返します。
@see REXML::Entity#value, REXML::Entity#unnormalized -
REXML
:: Entity # unnormalized -> String | nil (18304.0) -
非正規化された(unnormalized)実体の値を返します。
非正規化された(unnormalized)実体の値を返します。
すなわち、self が属する DTD によってすべての実体参照(&ent; と %ent; の両方)
を展開した文字列を返します。
外部実体(external entity)宣言の場合は nil を返します。
@see REXML::Entity#value, REXML::Entity#normalized -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink (18304.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink=() (18304.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item :: Guid # isPermaLink (18304.0) -
@todo
@todo
* http://purl.org/dc/elements/1.1/ -
Resolv
:: DNS :: Resource :: MINFO # rmailbx -> String (18304.0) -
メーリングリストもしくはメールボックスの 責任者のドメイン名を返します。
メーリングリストもしくはメールボックスの
責任者のドメイン名を返します。 -
Shell
# rmdir(*path) -> () (18304.0) -
Dir.rmdirと同じです。 (複数可)
Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。 -
Shell
:: CommandProcessor # rmdir(*path) -> () (18304.0) -
Dir.rmdirと同じです。 (複数可)
Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。 -
Shell
:: Filter # rmdir(*path) -> () (18304.0) -
Dir.rmdirと同じです。 (複数可)
Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。 -
Shell
:: ProcessController # terminate _ job(command) (18304.0) -
指定されたコマンドを終了します。
指定されたコマンドを終了します。
@param command コマンドを指定します。 -
Shell
:: SystemCommand # terminate -> () (18304.0) -
@todo
@todo -
URI
:: Generic # normalize -> URI :: Generic (18304.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 (18304.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 (18304.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 -
WEBrick
:: Log # time _ format -> String (18304.0) -
時間を記録するフォーマットを文字列で表すアクセサです。 形式は Time#strftime と同じです。 デフォルトは "[%Y-%m-%d %H:%M:%S]" です。
時間を記録するフォーマットを文字列で表すアクセサです。
形式は Time#strftime と同じです。
デフォルトは "[%Y-%m-%d %H:%M:%S]" です。 -
WEBrick
:: Log # time _ format=() (18304.0) -
時間を記録するフォーマットを文字列で表すアクセサです。 形式は Time#strftime と同じです。 デフォルトは "[%Y-%m-%d %H:%M:%S]" です。
時間を記録するフォーマットを文字列で表すアクセサです。
形式は Time#strftime と同じです。
デフォルトは "[%Y-%m-%d %H:%M:%S]" です。 -
Matrix
# determinant -> Numeric (9304.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... -
Matrix
# determinant _ e -> Rational | Float (9304.0) -
このメソッドは deprecated です。 Matrix#determinant を代わりに使ってください。
このメソッドは deprecated です。
Matrix#determinant を代わりに使ってください。 -
Matrix
:: LUPDecomposition # determinant -> Numeric (9304.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant -
MonitorMixin
# new _ cond -> MonitorMixin :: ConditionVariable (9304.0) -
モニターに関連付けられた、新しい MonitorMixin::ConditionVariable を生成して返します。
モニターに関連付けられた、新しい MonitorMixin::ConditionVariable を生成して返します。 -
Psych
:: Nodes :: Node # transform -> object (9304.0) -
AST を ruby のオブジェクトに変換します。
AST を ruby のオブジェクトに変換します。