256件ヒット
[101-200件を表示]
(0.057秒)
ライブラリ
クラス
- Array (48)
- Matrix (12)
-
Net
:: FTP (20) -
Net
:: FTP :: MLSxEntry (20) -
Net
:: HTTPGenericRequest (24) - OptionParser (36)
- Pathname (24)
-
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid (24) -
RSS
:: Rss :: Channel :: Item :: Guid (12)
モジュール
-
OpenURI
:: OpenRead (24) -
OptionParser
:: Arguable (12)
キーワード
- facts (10)
- isPermaLink (24)
- isPermaLink= (12)
- mlsd (20)
- open (48)
- permutation (24)
- permutation? (12)
- permute (24)
- permute! (24)
-
repeated
_ permutation (24) -
request
_ body _ permitted? (12) -
response
_ body _ permitted? (12)
検索結果
先頭5件
-
OptionParser
:: Arguable # permute! -> [String] (12207.0) -
自身を破壊的にパースし、パースされずに残った引数を文字列の配列として返します。 OptionParser#permute! を参照して下さい。
...数を文字列の配列として返します。
OptionParser#permute! を参照して下さい。
@raise OptionParser::ParseError 自身のパースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク......ラスの例外になります。
//emlist[][ruby]{
require 'optparse'
o = nil
ARGV.options.on('-a'){ o = true }
ARGV.permute!
p o #=> true
//}... -
Array
# permutation(n = self . length) -> Enumerator (12202.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙.......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... -
Array
# permutation(n = self . length) { |p| block } -> self (12202.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙.......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... -
Matrix
# permutation? -> bool (12201.0) -
行列が置換行列ならば true を返します。
...行列が置換行列ならば true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します... -
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (12201.0) -
リクエストにエンティティボディを一緒に送ることが許されている HTTP メソッド (POST など)の場合真を返します。
...許されている
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 (12201.0) -
サーバからのレスポンスにエンティティボディを含むことが許されている HTTP メソッド (GET, POST など)の場合真を返します。
...TP メソッド (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.resp......onse_body_permitted? # => false
//}... -
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/...