217件ヒット
[1-100件を表示]
(0.131秒)
ライブラリ
クラス
- Array (33)
- Matrix (11)
-
Net
:: FTP (18) -
Net
:: FTP :: MLSxEntry (18) -
Net
:: HTTPGenericRequest (22) - OptionParser (27)
- Pathname (22)
-
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid (22) -
RSS
:: Rss :: Channel :: Item :: Guid (11)
モジュール
-
OpenURI
:: OpenRead (22) -
OptionParser
:: Arguable (11)
キーワード
- facts (9)
- isPermaLink (22)
- isPermaLink= (11)
- mlsd (18)
- open (44)
- permutation (22)
- permutation? (11)
- permute (16)
- permute! (22)
-
repeated
_ permutation (11) -
request
_ body _ permitted? (11) -
response
_ body _ permitted? (11)
検索結果
先頭5件
-
Net
:: FTP :: MLSxEntry # perm -> String|nil (21202.0) -
パーミッション文字列を返します。
...パーミッション文字列を返します。
情報がない場合は nil を返しますが、通常は
あるはずです。... -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink (12201.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink=() (12201.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item :: Guid # isPermaLink (12201.0) -
@todo
...@todo
* http://purl.org/dc/elements/1.1/... -
OptionParser
:: Arguable # permute! -> [String] (9101.0) -
自身を破壊的にパースし、パースされずに残った引数を文字列の配列として返します。 OptionParser#permute! を参照して下さい。
...onParser#permute! を参照して下さい。
@raise OptionParser::ParseError 自身のパースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスの例外になります。
//emlist[][ru......by]{
require 'optparse'
o = nil
ARGV.options.on('-a'){ o = true }
ARGV.permute!
p o #=> true
//}... -
Array
# permutation(n = self . length) { |p| block } -> self (6301.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...emlist[例][ruby]{
a = [1, 2, 3]
a.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.permu......[]]: one permutation 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| result << e} # => [1,2,3]
result # => [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
//}
@see Array#combination, Array#repeated_permutation... -
Net
:: FTP # mlsd(pathname = nil) -> [Net :: FTP :: MLSxEntry] (6213.0) -
pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。
...ディレクトリの各ファイルの情報が
Net::FTP::MLSxEntry のオブジェクトの配列として得られます。
どのような情報を取り出せるかは Net::FTP::MLSxEntry
を参照してください。
Net::FTP#list は
結果が文字列で得られるため、それを適......FTP の MLST コマンド 3659 を使います。FTPのLISTコマンドは
その出力結果の標準化がなされていないため、標準的結果を得るコマンドとして
MLST/MLSD が定義されました。
@param pathname 情報を得るディレクトリ名
@see Net::FTP#mlst
re......net/ftp'
Net::FTP.open("ftp.example.org") do |ftp|
ftp.login("anonymous", "foobar@example.com")
p ftp.mlsd("/")
# =>
# [#<Net::FTP::MLSxEntry:0x00558fbfa379c0
# @facts=
# {"modify"=>2014-08-25 16:44:41 UTC,
# "perm"=>"fle",
# "type"=>"cdir",
#... -
Array
# permutation(n = self . length) -> Enumerator (6201.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...emlist[例][ruby]{
a = [1, 2, 3]
a.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.permu......[]]: one permutation 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| 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) { |p| . . . } -> self (6201.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...//emlist[例][ruby]{
a = [1, 2]
a.repeated_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_permutat......=> [[]] # 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 (6201.0) -
行列が置換行列ならば true を返します。
行列が置換行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します