るりまサーチ (Ruby 3.3)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.050秒)
トップページ > ライブラリ:openssl[x] > クエリ:openssl[x] > クエリ:SSL[x] > クエリ:INTEGER[x] > バージョン:3.3[x] > クエリ:coerce[x]

別のキーワード

  1. pop enable_ssl
  2. net/pop disable_ssl
  3. net/pop use_ssl?
  4. pop3 disable_ssl
  5. pop disable_ssl

クラス

検索結果

OpenSSL::BN#coerce(other) -> Array (96418.0)

自身と other が同じクラスになるよう、自身か other を変換し [other, self] という配列にして返します。

...換後オブジェクト] にして返します。
それ以外の場合は例外 TypeError を発生させます。

//emlist[][ruby]{
require 'openssl'
p 1.to_bn.coerce(2) # => [2, 1]
//}

@param other 変換の基準となるオブジェクト
@raise TypeError 変換に失敗した場合に発...