るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. _builtin typeerror
  2. sort typeerror
  3. dump typeerror
  4. $@ typeerror
  5. $~ typeerror

クラス

キーワード

検索結果

OpenSSL::BN#<=>(other) -> -1 | 0 | 1 (18325.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 比較する整数
@r...
...aise TypeError 比較できないときに発生します。
@see OpenSSL::BN#ucmp...

OpenSSL::BN#cmp(other) -> -1 | 0 | 1 (9025.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 比較する整数
@r...
...aise TypeError 比較できないときに発生します。
@see OpenSSL::BN#ucmp...