種類
- インスタンスメソッド (256)
- 特異メソッド (181)
- クラス (71)
- モジュール関数 (40)
- 定数 (24)
ライブラリ
- ビルトイン (132)
- getoptlong (12)
- matrix (12)
-
net
/ ftp (52) -
net
/ http (59) - 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)
- GetoptLong (12)
- 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)
キーワード
- EPERM (12)
- FTPPermError (12)
- FilePermissionError (12)
- HTTPMovedPermanently (12)
- HTTPPermanentRedirect (11)
- MovedPermanently (12)
- PERMUTE (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件
-
Net
:: FTP :: MLSxEntry # perm -> String|nil (18101.0) -
パーミッション文字列を返します。
パーミッション文字列を返します。
情報がない場合は nil を返しますが、通常は
あるはずです。 -
Array
# permutation(n = self . length) -> Enumerator (6100.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
....permutation.to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,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 perm......tation of length 0
a.permutation(4).to_a #=> [] : no permutations of length 4
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.permutation(2) {|e| resul......t << 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 (6100.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
....permutation.to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,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 perm......tation of length 0
a.permutation(4).to_a #=> [] : no permutations of length 4
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.permutation(2) {|e| resul......t << 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 (6100.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...eated_permutation(1).to_a #=> [[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 permutati......ロックを実
行して 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 (6100.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...eated_permutation(1).to_a #=> [[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 permutati......ロックを実
行して 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... -
GetoptLong
:: PERMUTE -> 1 (6100.0) -
コマンド行引数の内容を、走査した順に入れ替え、最終的にはすべての非オプ ションを末尾に寄せます。この方式では、オプションはどの順序で書いても良 いことになります。これは、たとえプログラム側でそうなることを期待しなく ても、そうなります。この方式がデフォルトです。
コマンド行引数の内容を、走査した順に入れ替え、最終的にはすべての非オプ
ションを末尾に寄せます。この方式では、オプションはどの順序で書いても良
いことになります。これは、たとえプログラム側でそうなることを期待しなく
ても、そうなります。この方式がデフォルトです。 -
Matrix
# permutation? -> bool (6100.0) -
行列が置換行列ならば true を返します。
行列が置換行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します -
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (6100.0) -
リクエストにエンティティボディを一緒に送ることが許されている 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_body_permitted? # => false
//}... -
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (6100.0) -
サーバからのレスポンスにエンティティボディを含むことが許されている 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.response_body_permitted? # => false
//}...