るりまサーチ

最速Rubyリファレンスマニュアル検索!
416件ヒット [1-100件を表示] (0.022秒)

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. require execute

キーワード

検索結果

<< 1 2 3 ... > >>

Integer#to_bn -> OpenSSL::BN (15.0)

Integer を同じ数を表す OpenSSL::BN のオブジェクトに 変換します。

...Integer を同じ数を表す OpenSSL::BN のオブジェクトに
変換します。

//emlist[][ruby]{
require
'pp'
require
'openssl'

pp 5.to_bn #=> #<OpenSSL::BN 5>
pp (-5).to_bn #=> #<OpenSSL::BN -5>
//}

なお、実装は、以下のようになっています。

//emlist[][ruby]{
clas...
...s Integer
def to_bn
OpenSSL::BN::new(self)
end
end
//}

@see OpenSSL::BN.new, OpenSSL::BN#to_i...

OpenSSL::BN#pretty_print(pp) (15.0)

Kernel.#pp でオブジェクトの内容を出力するときに、内部で呼ばれるメソッドです。

...nel.#pp でオブジェクトの内容を出力するときに、内部で呼ばれるメソッドです。

//emlist[][ruby]{
require
'pp'
require
'openssl'

pp 5.to_bn #=> #<OpenSSL::BN 5>
pp (-5).to_bn #=> #<OpenSSL::BN -5>
//}

@param pp PP クラスのインスタンスオブジェクト...

Integer#to_bn -> OpenSSL::BN (9.0)

Integer を同じ数を表す OpenSSL::BN のオブジェクトに 変換します。

... OpenSSL::BN のオブジェクトに
変換します。

//emlist[][ruby]{
require
'openssl'

pp 5.to_bn #=> #<OpenSSL::BN 5>
pp (-5).to_bn #=> #<OpenSSL::BN -5>
//}

なお、実装は、以下のようになっています。

//emlist[][ruby]{
class Integer
def to_bn
OpenSSL
::BN::n...
...ew(self)
end
end
//}

@see OpenSSL::BN.new, OpenSSL::BN#to_i...

OpenSSL::ASN1::ObjectId#ln -> String | nil (9.0)

オブジェクト識別子に対応する long name を返します。

...オブジェクト識別子に対応する long name を返します。

例:
require
"openssl"
oid = OpenSSL::ASN1::ObjectId.new("subjectAltName")
p oid.ln #=> "X509v3 Subject Alternative Name"

@see OpenSSL::ASN1::ObjectId#sn...

OpenSSL::ASN1::ObjectId#long_name -> String | nil (9.0)

オブジェクト識別子に対応する long name を返します。

...オブジェクト識別子に対応する long name を返します。

例:
require
"openssl"
oid = OpenSSL::ASN1::ObjectId.new("subjectAltName")
p oid.ln #=> "X509v3 Subject Alternative Name"

@see OpenSSL::ASN1::ObjectId#sn...

絞り込み条件を変える

OpenSSL::ASN1::ObjectId#oid -> String (9.0)

オブジェクト識別子のドット区切り数値を文字列で返します。

...オブジェクト識別子のドット区切り数値を文字列で返します。

例:
require
"openssl"
oid = OpenSSL::ASN1::ObjectId.new("subjectAltName")
p oid.oid #=> "2.5.29.17"

@raise OpenSSL::ASN1::ASN1Error オブジェクト識別子名が未知である場合に発生します...

OpenSSL::ASN1::ObjectId#short_name -> String | nil (9.0)

オブジェクト識別子に対応する short name を返します。

...オブジェクト識別子に対応する short name を返します。

例:
require
"openssl"
oid = OpenSSL::ASN1::ObjectId.new("subjectAltName")
p oid.sn #=> "subjectAltName"

@see OpenSSL::ASN1::ObjectId#ln...

OpenSSL::ASN1::ObjectId#sn -> String | nil (9.0)

オブジェクト識別子に対応する short name を返します。

...オブジェクト識別子に対応する short name を返します。

例:
require
"openssl"
oid = OpenSSL::ASN1::ObjectId.new("subjectAltName")
p oid.sn #=> "subjectAltName"

@see OpenSSL::ASN1::ObjectId#ln...

OpenSSL::BN#<=>(other) -> -1 | 0 | 1 (9.0)

自身と other を比較し、自身が小さいときには -1、 等しいときには 0、大きいときには 1 を返します。

...いときには 1 を返します。

//emlist[][ruby]{
require
'openssl'

OpenSSL
::BN.new(5) <=> 5 # => 0

OpenSSL
::BN.new(5) <=> OpenSSL::BN.new(9) # => -1
OpenSSL
::BN.new(5) <=> OpenSSL::BN.new(5) # => 0
OpenSSL
::BN.new(5) <=> OpenSSL::BN.new(-5) # => 1
//}

@param other 比較する整数...
...@raise TypeError 比較できないときに発生します。
@see OpenSSL::BN#ucmp...

OpenSSL::BN#>>(other) -> OpenSSL::BN (9.0)

自身を other ビット右シフトした値を返します。

...自身を other ビット右シフトした値を返します。

//emlist[][ruby]{
require
'openssl'

bn = 2.to_bn
bn >> 1 # => #<OpenSSL::BN 1>
bn # => #<OpenSSL::BN 2>
//}

@param other シフトするビット数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#rshift!...

絞り込み条件を変える

<< 1 2 3 ... > >>