385件ヒット
[1-100件を表示]
(0.123秒)
ライブラリ
- ビルトイン (78)
-
net
/ ftp (30) - openssl (252)
- pp (12)
- prettyprint (13)
クラス
- MatchData (6)
-
Net
:: FTP (20) -
Net
:: FTP :: MLSxEntry (10) - Object (12)
-
OpenSSL
:: PKey :: EC (24) -
OpenSSL
:: PKey :: EC :: Group (204) -
OpenSSL
:: PKey :: EC :: Point (24) - PrettyPrint (13)
モジュール
- Enumerable (72)
キーワード
- == (12)
-
asn1
_ flag (12) -
asn1
_ flag= (12) - byteoffset (6)
- cofactor (12)
-
curve
_ name (12) - degree (12)
- eql? (12)
- facts (10)
- first? (1)
- generator (12)
- group= (12)
-
group
_ by (24) -
max
_ by (48) - mlsd (20)
-
on
_ curve? (12) - order (12)
-
point
_ conversion _ form (12) -
point
_ conversion _ form= (12) -
pretty
_ print (12) - seed (12)
- seed= (12)
-
set
_ generator (12) -
to
_ der (12) -
to
_ pem (12) -
to
_ text (12)
検索結果
先頭5件
- OpenSSL
:: PKey :: EC # group -> OpenSSL :: PKey :: EC :: Group - OpenSSL
:: PKey :: EC :: Point # group -> OpenSSL :: PKey :: EC :: Group - PrettyPrint
# group(indent = 0 , open _ obj = & # 39;& # 39; , close _ obj = & # 39;& # 39; , open _ width = open _ obj . length , close _ width = close _ obj . length) { . . . } -> () - Enumerable
# group _ by -> Enumerator - Enumerable
# group _ by {|obj| . . . } -> Hash
-
OpenSSL
:: PKey :: EC # group -> OpenSSL :: PKey :: EC :: Group (21309.0) -
鍵パラメータとなる群を表すオブジェクトを返します。
...鍵パラメータとなる群を表すオブジェクトを返します。
@see OpenSSL::PKey::EC#group=... -
OpenSSL
:: PKey :: EC :: Point # group -> OpenSSL :: PKey :: EC :: Group (21303.0) -
自身と関連付けられた群を返します。
自身と関連付けられた群を返します。 -
PrettyPrint
# group(indent = 0 , open _ obj = & # 39;& # 39; , close _ obj = & # 39;& # 39; , open _ width = open _ obj . length , close _ width = close _ obj . length) { . . . } -> () (21108.0) -
与えられたブロックを実行します。 ブロック内で自身に追加される文字列やオブジェクトは、1行にまとめて表示しても よい同じグループに属すると仮定されます。
...属すると仮定されます。
もう少し詳しく説明します。pretty printing アルゴリズムはインデントと改行を、
ツリー構造を作ることによって決定します。そして、group メソッドは子ノードの作成と
子ノードのインデントの深さ... -
Enumerable
# group _ by -> Enumerator (12209.0) -
ブロックを評価した結果をキー、対応する要素の配列を値とするハッシュを返します。
...ブロックを評価した結果をキー、対応する要素の配列を値とするハッシュを返します。
//emlist[例][ruby]{
(1..6).group_by {|i| i%3} #=> {0=>[3, 6], 1=>[1, 4], 2=>[2, 5]}
//}
ブロックを省略した場合は Enumerator を返します。... -
Enumerable
# group _ by {|obj| . . . } -> Hash (12209.0) -
ブロックを評価した結果をキー、対応する要素の配列を値とするハッシュを返します。
...ブロックを評価した結果をキー、対応する要素の配列を値とするハッシュを返します。
//emlist[例][ruby]{
(1..6).group_by {|i| i%3} #=> {0=>[3, 6], 1=>[1, 4], 2=>[2, 5]}
//}
ブロックを省略した場合は Enumerator を返します。... -
OpenSSL
:: PKey :: EC # group=(gr) (9120.0) -
鍵パラメータとなる群を表すオブジェクトを設定します。
...することはありません。
よく考えて必要な場合のみ利用してください。
@param gr 設定する OpenSSL::PKey::EC::Group オブジェクト
@raise OpenSSL::PKey::ECError Group オブジェクトの設定に失敗した場合に発生します
@see OpenSSL::PKey::EC#group... -
Object
# pretty _ print(pp) -> () (6113.0) -
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに 呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
...義します。
そのとき pretty_print メソッドは指定された pp に対して表示したい自身の内容を追加して
いかなければいけません。いくつかの組み込みクラスについて、
pp ライブラリはあらかじめ pretty_print メソッドを定義して......ブジェクトです。
//emlist[][ruby]{
require 'pp'
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyPrint#text, PrettyPrint#group, PrettyPrint#breakable......@param pp PP オブジェクトです。
//emlist[][ruby]{
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyPrint#text, PrettyPrint#group, PrettyPrint#breakable... -
OpenSSL
:: PKey :: EC :: Group # point _ conversion _ form -> Symbol (6113.0) -
点のエンコーディング方式を返します。
...:compressed
* :uncompressed
* :hybrid
詳しくは X9.62 (ECDSA) などを参照してください。
@raise OpenSSL::PKey::EC::Group::Error 得られたエンコーディングが未知の値であった
場合に発生します。
@see OpenSSL::PKey::EC::Group#point_conversion_form=... -
Enumerable
# max _ by -> Enumerator (6107.0) -
各要素を順番にブロックに渡して実行し、 その評価結果を <=> で比較して、 最大であった値に対応する元の要素、もしくは最大の n 要素が降順で入った配列を返します。
...ble#max と Enumerable#max_by の
違いは Enumerable#sort と Enumerable#sort_by の違いと同じです。
ブロックを省略した場合は Enumerator を返します。
@param n 取得する要素数。
//emlist[例][ruby]{
a = %w(albatross dog horse)
a.max_by # => #<E......orse"]:max_by>
a.max_by { |x| x.length } # => "albatross"
//}
//emlist[例][ruby]{
a = %w[albatross dog horse]
a.max_by(2) # => #<Enumerator: ["albatross", "dog", "horse"]:max_by(2)>
a.max_by(2) {|x| x.length } # => ["albatross", "horse"]
//}
//emlist[例: enum.max_by(n)は......す。][ruby]{
module Enumerable
# weighted random sampling.
#
# Pavlos S. Efraimidis, Paul G. Spirakis
# Weighted random sampling with a reservoir
# Information Processing Letters
# Volume 97, Issue 5 (16 March 2006)
def wsample(n)
self.max_by(n) {|v| rand ** (1.0/yield(v)) }
en...