るりまサーチ

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

別のキーワード

  1. openssl p=
  2. openssl p
  3. fileutils mkdir_p
  4. dh p=
  5. dh p

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

IPAddr#==(ipaddr) -> bool (21213.0)

IPAddr オブジェクト同士が等しいかを比較します。

...IPAddr オブジェクト同士が等しいかを比較します。

@param ipaddr 比較対象の IPAddr オブジェクト。
また、数値や文字列も受け付けます。

例:

require "ipaddr"
p
IPAddr.new("192.168.0.1") == IPAddr.new("192.168.0.1/24") # => false...

Exception#==(other) -> bool (21159.0)

自身と指定された other のクラスが同じであり、 message と backtrace が == メソッドで比較して 等しい場合に true を返します。そうでない場合に false を返します。

...身と指定された other のクラスが同じであり、
message と backtrace が == メソッドで比較して
等しい場合に true を返します。そうでない場合に false を返します。

@param other 自身と比較したいオブジェクトを指定します。...
...定した場合は
Exception#exception を実行して変換を試みます。

//emlist[例][ruby]{
require "date"
def check_long_month(month)
return if Date.new(2000, month, -1).day == 31
raise "#{month} is not long month"
end

def get_exception
return begin
yield
rescue =...
...ap { |e | get_exception { check_long_month(e) } }
p
results.map { |e| e.class }
# => [RuntimeError, RuntimeError, RuntimeError]
p
results.map { |e| e.message }
# => ["2 is not long month", "2 is not long month", "4 is not long month"]

# class, message, backtrace が同一のため true になる
p
...

Regexp#==(other) -> bool (21155.0)

otherが同じパターン、オプション、文字コードの正規表現であったらtrueを返します。

...あったらtrueを返します。

@param other 正規表現を指定します。

//emlist[例][ruby]{
p
/^eee$/ == /~eee$/x # => false
p
/^eee$/ == /~eee$/i # => false
p
/^eee$/e == /~eee$/u # => false
p
/^eee$/ == Regexp.new("^eee$") # => true
p
/^eee$/.eql?(/^eee$/) # => tru...

Pathname#==(other) -> bool (21137.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#==(other) -> bool (21125.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...

絞り込み条件を変える

Complex#==(other) -> bool (21119.0)

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

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

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

//emlist[例][ruby]{
Complex(2, 1) == Complex(1) # => false
Complex(1, 0) == Complex(1) # => true
Complex(1, 0) == 1 # => true
//}...

Comparable#==(other) -> bool (21113.0)

比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が 0 を返した時に、true を返します。 それ以外を返した場合は、false を返します。

...ジェクト同士を比較します。
<=> が 0 を返した時に、true を返します。
それ以外を返した場合は、false を返します。

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

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

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

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

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

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

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

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

...ムである場合に真を返します。
そうでない場合は偽を返します。

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

@param other 比較対象のオブジェクトです。...

OpenSSL::BN#==(other) -> bool (21101.0)

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

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

@param other 比較する数...

絞り込み条件を変える

<< 1 2 3 ... > >>