クラス
- Array (89)
- Bignum (3)
- Data (8)
- Encoding (11)
-
Encoding
:: Converter (44) -
Enumerator
:: ArithmeticSequence (6) - Float (11)
- Hash (1075)
- IO (154)
- KeyError (14)
- MatchData (22)
- Method (11)
- Module (5)
- Numeric (11)
- Object (66)
- Proc (16)
- Range (11)
- Rational (11)
- Regexp (22)
-
RubyVM
:: InstructionSequence (66) - String (220)
- Struct (41)
- Thread (11)
- Time (11)
- UnboundMethod (22)
モジュール
- Enumerable (71)
- GC (54)
-
GC
:: Profiler (11) - Kernel (165)
- Marshal (22)
- ObjectSpace (11)
- Signal (11)
オブジェクト
- ENV (226)
キーワード
- % (11)
- < (9)
- <= (9)
- == (11)
- === (11)
- > (9)
- >= (9)
- ENV (11)
- Enumerable (11)
- Hash (22)
- KeyError (11)
- Lazy (11)
- Numeric (11)
-
SCRIPT
_ LINES _ _ (11) - [] (34)
- []= (11)
- aliases (11)
- assoc (22)
- clear (11)
- clone (11)
- collect (24)
- compact (13)
- compact! (8)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - compile (11)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) -
count
_ objects (11) -
deconstruct
_ keys (2) - default (22)
- default= (11)
-
default
_ proc (11) -
default
_ proc= (11) - delete (22)
-
delete
_ if (22) - difference (6)
- dig (27)
- dump (22)
- dup (11)
- each (22)
-
each
_ key (22) -
each
_ pair (22) -
each
_ value (22) - empty? (11)
- encode (33)
- eql? (44)
- equal? (11)
- except (6)
- exec (44)
- fetch (33)
-
fetch
_ values (18) - filter (24)
- filter! (24)
- flatten (11)
- format (11)
-
group
_ by (22) - gsub (44)
- gsub! (44)
-
handle
_ interrupt (11) -
has
_ key? (11) -
has
_ value? (11) - include? (11)
- index (7)
- inspect (22)
- intersection (5)
- invert (22)
-
is
_ a? (11) -
keep
_ if (44) - key (18)
- key? (11)
- keys (11)
-
kind
_ of? (11) -
latest
_ gc _ info (22) - length (11)
- list (11)
- map (24)
- member? (11)
- merge (22)
- merge! (22)
-
named
_ captures (22) - new (36)
- owner (11)
- popen (154)
-
primitive
_ convert (44) - rassoc (22)
-
raw
_ data (11) - receiver (7)
- rehash (22)
- reject (44)
- reject! (22)
- replace (22)
-
ruby2
_ keywords (10) -
ruby2
_ keywords _ hash? (5) - select (44)
- select! (44)
- shift (11)
- size (11)
- slice (13)
- spawn (44)
- sprintf (11)
- stat (22)
- store (11)
- sub (33)
- sub! (33)
- system (44)
- tally (8)
-
to
_ a (22) -
to
_ h (89) -
to
_ hash (33) -
to
_ proc (9) -
to
_ s (22) -
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) -
try
_ convert (11) - union (6)
- update (22)
- value? (11)
- values (11)
-
values
_ at (11) -
verify
_ compaction _ references (5) - | (11)
検索結果
先頭5件
-
KeyError (8018.0)
-
Hash#fetch などで key に対応する value がない場合に発生します。
...Hash#fetch などで key に対応する value がない場合に発生します。
Ruby 1.8 以前では同様の場面で IndexError が発生していました。
互換性のため、KeyError は IndexError のサブクラスになっています。... -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (8018.0) -
For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.
...lat (`*args`) but not explicit keywords or a
keyword splat. It marks the method such that if the method is called
with keyword arguments, the final hash argument is marked with a special
flag such that if it is the final element of a normal argument splat to
another method call, and that method cal... -
Proc
# ruby2 _ keywords -> proc (8018.0) -
Marks the proc as passing keywords through a normal argument splat. This should only be called on procs that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the proc such that if the proc is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the proc to other methods.
...t splat (`*args`)
but not explicit keywords or a keyword splat. It marks the proc such
that if the proc is called with keyword arguments, the final hash
argument is marked with a special flag such that if it is the final
element of a normal argument splat to another method call, and that
method cal... -
Kernel
. # exec(command , options={}) -> () (8017.0) -
引数で指定されたコマンドを実行します。
...されます。
@param command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash
@raise Errno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。
//emlist... -
Kernel
. # exec(env , command , options={}) -> () (8017.0) -
引数で指定されたコマンドを実行します。
...されます。
@param command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash
@raise Errno::EXXX 起動に失敗し、ruby インタプリタに制御が戻った場合に発生します。
//emlist... -
Kernel
. # system(command , options={}) -> bool | nil (8017.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...す。
@param command command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash
//emlist[シェル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
@see Ke......す。
@param command command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash
@raise Errno::EXXX exception: true が指定されていて、コマンドの実行が失敗したときに発生します... -
Kernel
. # system(env , command , options={}) -> bool | nil (8017.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...す。
@param command command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash
//emlist[シェル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
@see Ke......す。
@param command command コマンドを文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash
@raise Errno::EXXX exception: true が指定されていて、コマンドの実行が失敗したときに発生します... -
GC
. latest _ gc _ info(key) -> object (8016.0) -
最新のGCの情報を返します。
...最新のGCの情報を返します。
@param result_hash 戻り値のためのハッシュを指定します。省略した場合は新
しくハッシュを作成します。result_hash の内容は上書き
されます。
@param key 得られる情報か... -
IO
. popen([env = {} , [cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO (8015.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
.../"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param env 環境変数を { 変数名 => 内容 } という形式の Hash で渡します。
@param command コマンド名を文字列で指定します。シェルを経由して実行されます。
@param cmdname コ......します
@param args コマンドのパラメータを文字列で指定します
@param execopt プロセス実行に関するオプションを Hash で指定します。
@param mode オープンする IO ポートのモードを指定します。mode の詳細は Kernel.#open 参照して下さ... -
IO
. popen([env = {} , [cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) {|f| . . . } -> object (8015.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
.../"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param env 環境変数を { 変数名 => 内容 } という形式の Hash で渡します。
@param command コマンド名を文字列で指定します。シェルを経由して実行されます。
@param cmdname コ......します
@param args コマンドのパラメータを文字列で指定します
@param execopt プロセス実行に関するオプションを Hash で指定します。
@param mode オープンする IO ポートのモードを指定します。mode の詳細は Kernel.#open 参照して下さ... -
IO
. popen([env = {} , cmdname , *args , execopt={}] , mode = "r" , opt={}) -> IO (8015.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
.../"], :err=>[:child, :out]) {|ls_io|
ls_result_with_error = ls_io.read
}
@param env 環境変数を { 変数名 => 内容 } という形式の Hash で渡します。
@param command コマンド名を文字列で指定します。シェルを経由して実行されます。
@param cmdname コ......します
@param args コマンドのパラメータを文字列で指定します
@param execopt プロセス実行に関するオプションを Hash で指定します。
@param mode オープンする IO ポートのモードを指定します。mode の詳細は Kernel.#open 参照して下さ...