30件ヒット
[1-30件を表示]
(0.026秒)
別のキーワード
ライブラリ
- ビルトイン (12)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- Hash (12)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
検索結果
先頭4件
-
Shell
# zero?(file) -> bool (18107.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#zero?... -
Shell
:: CommandProcessor # zero?(file) -> bool (18107.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#zero?... -
Shell
:: Filter # zero?(file) -> bool (18107.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#zero?... -
Hash
# default _ proc=(pr) (25.0) -
ハッシュのデフォルト値を返す Proc オブジェクトを 変更します。
...をクリアします。
@param pr デフォルト値を返す手続きオブジェクト
//emlist[例][ruby]{
h = {}
h.default_proc = proc do |hash, key|
hash[key] = case
when (key % 15).zero?
"FizzBuzz"
when (key % 5).zero?
"Buzz"......when (key % 3).zero?
"Fizz"
else
key
end
end
p h[1] # => 1
p h[2] # => 2
p h[3] # => "Fizz"
p h[5] # => "Buzz"
p h[15] # => "FizzBuzz"
h.default_proc = nil
p h[16] # => nil
# default_proc が nil になったので `16=>1...