るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

DRb::DRbObject#==(other) -> bool (27301.0)

DRb::DRbObject オブジェクト同士が同じであるなら真を返します。

...DRb::DRbObject オブジェクト同士が同じであるなら真を返します。

この同値判定は、
オブジェクトが参照している URI と識別子が等しいかどうかでします。...

Rational#==(other) -> bool (24331.0)

数値として等しいか判定します。

...@param other 自身と比較する数値

@return self と other が等しい場合 true を返します。
そうでなければ false を返します。

//emlist[例][ruby]{
R
ational(2, 3) == Rational(2, 3) # => true
R
ational(5) == 5 # => true
R
ational(0)...
...== 0.0 # => true
R
ational('1/3') == 0.33 # => false
R
ational('1/2') == '1/2' # => false
//}...

String#==(other) -> bool (24325.0)

other が文字列の場合、String#eql? と同様に文字列の内容を比較します。

...other が文字列の場合、String#eql? と同様に文字列の内容を比較します。

other が文字列でない場合、
other.to_str が定義されていれば
other == self の結果を返します。(ただし、 other.to_str は実行されません。)
そうでなければ false...
...ram other 任意のオブジェクト
@return true か false

//emlist[例][ruby]{
stringlike = Object.new

def stringlike.==(other)
"string" == other
end

p "string".eql?(stringlike) #=> false
p "string" == stringlike #=> false

def stringlike.to_str
r
aise
end

p "string".eql?(str...
...inglike) #=> false
p "string" == stringlike #=> true
//}

@see String#eql?...

Struct#==(other) -> bool (24323.0)

self と other のクラスが同じであり、各メンバが == メソッドで比較して等しい場合に true を返します。そうでない場合に false を返します。

...f と other のクラスが同じであり、各メンバが == メソッドで比較して等しい場合に
t
rue を返します。そうでない場合に false を返します。

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

//emlist[例][ruby]{
Dog = Struct.new(:...
...red", 5)
dog2 = Dog.new("fred", 5)

p dog1 == dog2 #=> true
p dog1.eql?(dog2) #=> true
p dog1.equal?(dog2) #=> false
//}

[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Str...
...uct.new は Struct の下位クラスを作成する点に
注意してください。

@see Struct#eql?...

Fiddle::Pointer#==(other) -> bool (24313.0)

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

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

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

例:

r
equire 'fiddle'

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

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

絞り込み条件を変える

Integer#==(other) -> bool (24313.0)

比較演算子。数値として等しいか判定します。

...比較演算子。数値として等しいか判定します。

@param other 比較対象の数値
@return self と other が等しい場合 true を返します。
そうでなければ false を返します。

//emlist[][ruby]{
1 == 2 # => false
1 == 1.0 # => true
//}...

Enumerator::ArithmeticSequence#==(other) -> bool (24301.0)

Enumerable::ArithmeticSequence として等しいか判定します。

...Enumerable::ArithmeticSequence として等しいか判定します。

other が Enumerable::ArithmeticSequence で
begin, end, step, exclude_end? が等しい時に
t
rue を返します。

@param other 自身と比較する Enumerable::ArithmeticSequence...

Gem::Package::TarHeader#==(other) -> bool (24301.0)

自身と other が等しければ真を返します。 そうでない場合は偽を返します。

...自身と other が等しければ真を返します。
そうでない場合は偽を返します。

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

Gem::Platform#==(other) -> bool (24301.0)

自身と other が同じプラットフォームである場合に真を返します。 そうでない場合は偽を返します。

...と other が同じプラットフォームである場合に真を返します。
そうでない場合は偽を返します。

同じプラットフォームであるとは、二つのプラットフォームの
CPU, OS, バージョンが同じであるということです。

@param other...
<< 1 2 3 ... > >>