1311件ヒット
[1-100件を表示]
(0.110秒)
種類
- インスタンスメソッド (1289)
- 特異メソッド (22)
ライブラリ
- ビルトイン (764)
- bigdecimal (33)
- csv (22)
- date (11)
- delegate (11)
- digest (22)
- drb (22)
- fiddle (22)
- ipaddr (33)
- matrix (44)
-
net
/ ftp (9) - openssl (88)
- ostruct (11)
- pathname (33)
- rake (11)
-
rdoc
/ context (11) -
rexml
/ document (44) -
rubygems
/ package / tar _ header (11) -
rubygems
/ platform (22) -
rubygems
/ requirement (33) -
rubygems
/ version (11) - set (32)
- uri (11)
クラス
- Array (58)
- BasicObject (33)
- BigDecimal (33)
- Bignum (9)
- Binding (11)
-
CSV
:: Row (11) -
CSV
:: Table (11) - Complex (11)
-
DRb
:: DRbObject (22) - Data (4)
- Date (11)
- Delegator (11)
-
Digest
:: Base (22) -
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Lazy (63) - Exception (11)
- FalseClass (22)
-
Fiddle
:: Pointer (22) - Fixnum (3)
- Float (22)
-
Gem
:: Package :: TarHeader (11) -
Gem
:: Platform (22) -
Gem
:: Requirement (33) -
Gem
:: Version (11) - Hash (55)
- IPAddr (33)
- Integer (36)
- MatchData (22)
- Matrix (22)
- Method (22)
- Module (11)
-
Net
:: FTP :: MLSxEntry (9) - Numeric (11)
- Object (33)
-
OpenSSL
:: BN (33) -
OpenSSL
:: PKey :: EC :: Group (22) -
OpenSSL
:: PKey :: EC :: Point (22) -
OpenSSL
:: SSL :: Session (11) - OpenStruct (11)
- Pathname (33)
-
Process
:: Status (11) -
RDoc
:: Context :: Section (11) -
REXML
:: Attribute (11) -
REXML
:: Comment (11) -
REXML
:: Instruction (11) -
REXML
:: XMLDecl (11) -
Rake
:: FileList (11) - Random (11)
- Range (32)
- Rational (11)
- Regexp (33)
- Set (32)
- String (22)
- Struct (22)
- SystemCallError (11)
- Thread (11)
- TrueClass (33)
-
URI
:: Generic (11) - UnboundMethod (22)
- Vector (22)
モジュール
- Comparable (11)
- Enumerable (91)
キーワード
- != (11)
- & (11)
- === (175)
- =~ (11)
- ^ (22)
- allbits? (7)
-
chunk
_ while (11) - eql? (214)
- equal? (11)
- file? (9)
-
has
_ value? (11) - include? (45)
-
local
_ variable _ defined? (11) - member? (23)
- nobits? (7)
- none? (47)
- one? (47)
-
pending
_ interrupt? (11) -
satisfied
_ by? (11) -
slice
_ after (20) -
slice
_ before (33) -
slice
_ when (10) - value? (11)
- | (22)
検索結果
先頭5件
-
OpenSSL
:: SSL :: Session # ==(other) -> bool (24301.0) -
otherと自身が同一のセッションであれば真を返します。
otherと自身が同一のセッションであれば真を返します。 -
Float
# ==(other) -> bool (21331.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 (21331.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 (21319.0) -
数値として等しいか判定します。
...数値として等しいか判定します。
@param other 自身と比較する数値
//emlist[例][ruby]{
Complex(2, 1) == Complex(1) # => false
Complex(1, 0) == Complex(1) # => true
Complex(1, 0) == 1 # => true
//}... -
Fiddle
:: Pointer # ==(other) -> bool (21314.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... -
CSV
:: Table # ==(other) -> bool (21313.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 (21313.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が 0 を返した時に、true を返します。 それ以外を返した場合は、false を返します。
...ジェクト同士を比較します。
<=> が 0 を返した時に、true を返します。
それ以外を返した場合は、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
1 == 1 # => true
1 == 2 # => false
//}... -
BigDecimal
# ==(other) -> bool (21309.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 (21307.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
//}... -
OpenSSL
:: BN # ==(other) -> bool (21303.0) -
自身と other が等しい場合に true を返します。
自身と other が等しい場合に true を返します。
@param other 比較する数