るりまサーチ

最速Rubyリファレンスマニュアル検索!
211件ヒット [101-200件を表示] (0.136秒)

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. dsa p
  5. rsa p

ライブラリ

クラス

検索結果

<< < 1 2 3 > >>

Gem::Version#eql?(other) -> bool (18119.0)

self と other の Gem::Version#version のバージョンが等しいとき true を返します。 そうでなければ false を返します。

...lf と other の Gem::Version#version のバージョンが等しいとき true を返します。
そうでなければ false を返します。

Comparable を include して作られた == と異なり、"1.0" と "1" は異なるものと判定します。

//emlist[][ruby]{
ver0 = Gem::Version....
...create('1.0') # #<Gem::Version "1.0">
ver1 = Gem::Version.create('1.0') # #<Gem::Version "1.0">
ver2 = Gem::Version.create('1') # #<Gem::Version "1">

p
ver0.eql?(ver1) # => true
p
ver1.eql?(ver2) # => false
p
ver1 == ver2 # => true
//}...

Pathname#eql?(other) -> bool (18119.0)

パス名を比較し、 other と同じなら真を返します。大文字小文字は区別されます。 other は Pathname オブジェクトでなければなりません。

...
other は Pathname オブジェクトでなければなりません。

パス名の比較は単純にパス文字列の比較によって行われるので、論理的に
同じパスでもパス文字列が違えば異なると判断されます。

@param other 比較対象の Pathname オブ...
...ジェクトを指定します。

//emlist[例][ruby]{
require 'pathname'

p
Pathname.new("foo/bar") == Pathname.new("foo/bar")
p
Pathname.new("foo/bar") == Pathname.new("foo//bar")
p
Pathname.new("foo/../foo/bar") == Pathname.new("foo/bar")

# => true
# false
# false
//}...

Fiddle::Pointer#eql?(other) -> bool (18113.0)

ポインタの指すアドレスが同一ならばtrueを返します。

...タの指すアドレスが同一ならばtrueを返します。

@param other 比較対象の Pointer オブジェクト

例:

require 'fiddle'

s = 'abc'
cptr = Fiddle::Pointer[s]
cptr0 = Fiddle::Pointer[s]
cptr1 = cptr + 1

p
cptr == cptr1 #=> false
p
cptr == cptr0 #=> true...

Time#eql?(other) -> bool (18113.0)

other が Time かそのサブクラスのインスタンスであり自身と時刻が等しい場合に true を返します。そうでない場合に false を返します。

...そうでない場合に false を返します。

@param other 自身と比較したい時刻を Time オブジェクトを指定します。

//emlist[][ruby]{
p
Time.local(2000, 1, 1).eql?(Time.local(2000, 1, 1)) # => true
p
Time.local(2000, 1, 1).eql?(Time.local(2000, 1, 2)) # => false
//}...

OpenSSL::BN#eql?(other) -> bool (18101.0)

自身と other が等しい場合に true を返します。

...自身と other が等しい場合に true を返します。

@param other 比較する数...

絞り込み条件を変える

OpenSSL::PKey::EC::Group#eql?(other) -> bool (18101.0)

自身が other と等しいときは true を返します。

...自身が other と等しいときは true を返します。

@param other 比較対象の OpenSSL::PKey::EC::Group オブジェクト...

OpenSSL::PKey::EC::Point#eql?(other) -> bool (18101.0)

自身が other と等しいならば true を返します。

...自身が other と等しいならば true を返します。

@raise OpenSSL::PKey::EC::Point::Error エラーが生じた場合に発生します...

UnboundMethod#eql?(other) -> bool (15113.0)

自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。

...false を返します。

@param other 自身と比較したいオブジェクトを指定します。

//emlist[例][ruby]{
a = String.instance_method(:size)
b = String.instance_method(:size)
p
a == b #=> true

c = Array.instance_method(:size)
p
a == c...

Method#eql?(other) -> bool (15107.0)

自身と other が同じインスタンスの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。

...ッドを表す場合に
true を返します。そうでない場合に false を返します。

@param other 自身と比較したいオブジェクトを指定します。

//emlist[例][ruby]{
s = "bar"
a = s.method(:size)
b = s.method(:size)
p
a == b #=> true
//}...

Method#hash -> Integer (25.0)

自身のハッシュ値を返します。

...自身のハッシュ値を返します。


//emlist[例][ruby]{
a = method(:==)
b = method(:eql?)
p
a.eql? b # => true
p
a.hash == b.hash # => true
p
[a, b].uniq.size # => 1
//}...

絞り込み条件を変える

<< < 1 2 3 > >>