るりまサーチ

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

別のキーワード

  1. kernel $-l
  2. matrix l
  3. _builtin $-l
  4. lupdecomposition l
  5. l

ライブラリ

モジュール

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

OpenSSL::SSL::Session#==(other) -> bool (24200.0)

otherと自身が同一のセッションであれば真を返します。

otherと自身が同一のセッションであれば真を返します。

Float#==(other) -> bool (21230.0)

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

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

//emlist[例][ruby]{
3.14 == 3.14000 # => true
3.14 == 3.1415 # => false
//}

NaNどうしの比較は、未定義です。
//emlist[例][ruby]{
Float::NAN == Float::NAN...
...# => false
[Float::NAN] == [Float::NAN] # => true
[Float::NAN] == [0.0 / 0.0] # => false
//}...

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

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

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

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

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

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

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

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

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

CSV::Table#==(other) -> bool (21212.0)

自身の全ての行が比較対象と同じである場合は真を返します。 そうでない場合は偽を返します。

...行が比較対象と同じである場合は真を返します。
そうでない場合は偽を返します。

@param other CSV::Table を指定します。

//emlist[例][ruby]{
require "csv"

row1_1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row1_2 = CSV::Row.new(["header1", "...
...ow1_1", "row1_2"])
row2_2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table1 = CSV::Table.new([row1_1, row1_2])
table2 = CSV::Table.new([row2_1, row2_2])
table1 == table2 # => true
table2 << CSV::Row.new(["header1", "header2"], ["row3_1", "row3_2"])
table1 == table2 # => false
//}...

絞り込み条件を変える

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

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

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

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

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

Fiddle::Pointer#==(other) -> bool (21212.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...

Symbol#==(other) -> true | false (21212.0)

other が同じシンボルの時に真を返します。 そうでない場合は偽を返します。

...other が同じシンボルの時に真を返します。
そうでない場合は偽を返します。

@param other 比較対象のシンボルを指定します。

例:

:aaa == :aaa #=> true
:aaa == :xxx #=> false...

BigDecimal#==(other) -> bool (21206.0)

self が other と等しい場合に true を、そうでない場合に false を返します。

...self が other と等しい場合に true を、そうでない場合に false を返します。

それぞれの値は BigDecimal#coerce で変換して比較される場合があります。

//emlist[][ruby]{
require 'bigdecimal'
BigDecimal('1.0') == 1.0 # => true
//}...

Rake::FileList#==(array) -> bool (21206.0)

自身を配列に変換してから与えられた配列と比較します。

...列と比較します。

@param array 比較対象の配列を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new('lib/**/*.rb', 'test/test*.rb')
file_list == file_list.to_a # => true
end
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>