524件ヒット
[1-100件を表示]
(0.083秒)
種類
- インスタンスメソッド (256)
- 特異メソッド (181)
- モジュール関数 (40)
- クラス (35)
- 定数 (12)
ライブラリ
- ビルトイン (120)
- matrix (12)
-
net
/ ftp (40) -
net
/ http (47) - open-uri (80)
- optparse (48)
- pathname (24)
- psych (14)
- rss (36)
-
rubygems
/ exceptions (12) -
rubygems
/ security (12) - tempfile (55)
-
webrick
/ httpstatus (24)
クラス
- Array (48)
- File (36)
- IO (12)
- Matrix (12)
-
Net
:: FTP (20) -
Net
:: FTP :: MLSxEntry (20) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (12) - OptionParser (36)
- Pathname (24)
-
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid (24) -
RSS
:: Rss :: Channel :: Item :: Guid (12) - Tempfile (55)
モジュール
-
Gem
:: Security (12) - Kernel (40)
- OpenURI (24)
-
OpenURI
:: OpenRead (24) -
OptionParser
:: Arguable (12) - Psych (14)
- URI (16)
-
WEBrick
:: HTTPStatus (12)
キーワード
- FilePermissionError (12)
- HTTPPermanentRedirect (11)
- MovedPermanently (12)
-
RC
_ MOVED _ PERMANENTLY (12) -
body
_ permitted? (12) - create (22)
- facts (10)
- isPermaLink (24)
- isPermaLink= (12)
- mlsd (20)
- new (23)
- open (150)
-
open
_ uri (24) - permutation (24)
- permutation? (12)
- permute (24)
- permute! (24)
-
repeated
_ permutation (24) -
request
_ body _ permitted? (12) -
response
_ body _ permitted? (12) -
safe
_ load (14) - sysopen (12)
-
verify
_ trust _ dir (12)
検索結果
先頭5件
-
IO
. sysopen(path , mode = "r" , perm = 0666) -> Integer (23207.0) -
path で指定されるファイルをオープンし、ファイル記述子を返しま す。
...path で指定されるファイルをオープンし、ファイル記述子を返しま
す。
IO.for_fd などで IO オブジェクトにしない限り、このメソッ
ドでオープンしたファイルをクローズする手段はありません。
@param path ファイル名を表す......@param perm open(2) の第 3 引数のように、ファイルを生成する場合の
ファイルのパーミッションを整数で指定します。Kernel.#open と同じです。
@raise Errno::EXXX ファイルのオープンに失敗した場合に発生します。
//emlist[例......][ruby]{
IO.sysopen("testfile", "w+") # => 3
//}
@see Kernel.#open... -
Net
:: FTP :: MLSxEntry # perm -> String|nil (18201.0) -
パーミッション文字列を返します。
...パーミッション文字列を返します。
情報がない場合は nil を返しますが、通常は
あるはずです。... -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink (15200.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink=() (15200.0) -
@todo
@todo -
Array
# permutation(n = self . length) -> Enumerator (12200.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3]
a.permutation.to_a......,1]]
a.permutation(1).to_a #=> [[1],[2],[3]]
a.permutation(2).to_a #=> [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
a.permutation(3).to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
a.permutation(0).to_a #=> [[]]: one permutation of length 0
a.permutation(4).to_a #=> [] : no permutations of......した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.permutation(2) {|e| result << e} # => [1,2,3]
result # => [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
//}
@see Array#combination, Array#repeated_permutation... -
Array
# permutation(n = self . length) { |p| block } -> self (12200.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3]
a.permutation.to_a......,1]]
a.permutation(1).to_a #=> [[1],[2],[3]]
a.permutation(2).to_a #=> [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
a.permutation(3).to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
a.permutation(0).to_a #=> [[]]: one permutation of length 0
a.permutation(4).to_a #=> [] : no permutations of......した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.permutation(2) {|e| result << e} # => [1,2,3]
result # => [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
//}
@see Array#combination, Array#repeated_permutation... -
Array
# repeated _ permutation(n) -> Enumerator (12200.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2]
a.repeated_permutation(1).to_......#=> [[1], [2]]
a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
a.repeated_permutation(0).to_a #=> [[]] # one permutation of length 0
//}
ブロ......ロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
//}
@see Array#repeated_combination, Array#permutation... -
Array
# repeated _ permutation(n) { |p| . . . } -> self (12200.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
a = [1, 2]
a.repeated_permutation(1).to_......#=> [[1], [2]]
a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
a.repeated_permutation(0).to_a #=> [[]] # one permutation of length 0
//}
ブロ......ロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
//}
@see Array#repeated_combination, Array#permutation... -
Matrix
# permutation? -> bool (12200.0) -
行列が置換行列ならば true を返します。
...行列が置換行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します...
