種類
ライブラリ
- English (11)
- ビルトイン (2559)
- base64 (11)
- bigdecimal (33)
-
cgi
/ core (11) - coverage (6)
- csv (44)
- date (11)
- dbm (11)
- delegate (11)
- digest (11)
- drb (22)
- fiddle (33)
- find (22)
- gdbm (11)
- ipaddr (33)
- matrix (121)
-
net
/ ftp (9) - nkf (11)
- objspace (11)
- openssl (110)
- ostruct (11)
- pathname (44)
- prime (22)
- rake (33)
-
rdoc
/ context (11) - readline (11)
-
rexml
/ document (55) -
rubygems
/ package / tar _ header (11) -
rubygems
/ platform (22) -
rubygems
/ requirement (44) -
rubygems
/ version (22) - sdbm (22)
- set (7)
- socket (66)
- strscan (11)
- thread (2)
- uri (11)
-
webrick
/ httpauth (11) -
webrick
/ httpauth / htpasswd (11) - win32ole (11)
クラス
-
ARGF
. class (88) - Addrinfo (44)
- Array (383)
- BasicObject (44)
- BasicSocket (11)
- BigDecimal (33)
- Bignum (9)
- Binding (11)
- CGI (11)
-
CSV
:: Row (22) -
CSV
:: Table (22) - Complex (11)
- Coverage (6)
- DBM (11)
-
DRb
:: DRbObject (22) - Data (8)
- Date (11)
- Delegator (11)
-
Digest
:: Base (11) - Enumerator (23)
-
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Lazy (118) - Exception (22)
- FalseClass (33)
-
Fiddle
:: Function (11) -
Fiddle
:: Pointer (22) - Fixnum (3)
- Float (33)
- GDBM (11)
-
Gem
:: Package :: TarHeader (11) -
Gem
:: Platform (22) -
Gem
:: Requirement (44) -
Gem
:: Version (22) - Hash (101)
- IPAddr (33)
- Integer (43)
- KeyError (7)
- MatchData (22)
- Matrix (99)
- Method (61)
-
Net
:: FTP :: MLSxEntry (9) - Numeric (66)
- Object (55)
-
OpenSSL
:: BN (55) -
OpenSSL
:: PKey :: EC :: Group (22) -
OpenSSL
:: PKey :: EC :: Point (22) -
OpenSSL
:: SSL :: Session (11) - OpenStruct (11)
- Pathname (44)
- Prime (22)
- Proc (55)
-
Process
:: Status (11) -
RDoc
:: Context :: Section (11) -
REXML
:: Attribute (11) -
REXML
:: Comment (11) -
REXML
:: Element (11) -
REXML
:: Instruction (11) -
REXML
:: XMLDecl (11) -
Rake
:: FileList (22) - Random (35)
- Range (126)
- Rational (11)
- Regexp (33)
-
RubyVM
:: InstructionSequence (44) - SDBM (22)
- Set (7)
- Socket (11)
- String (314)
- StringScanner (11)
- Struct (22)
- Symbol (33)
- SystemCallError (11)
- Thread (22)
- TrueClass (33)
-
URI
:: Generic (11) - UnboundMethod (33)
- Vector (22)
-
WIN32OLE
_ TYPE (11)
モジュール
- Base64 (11)
- Comparable (11)
- Enumerable (422)
- Find (22)
- GC (11)
- Kernel (11)
- ObjectSpace (11)
- Process (11)
-
Process
:: GID (22) -
Process
:: UID (22) -
Rake
:: Cloneable (11) - Readline (11)
-
WEBrick
:: HTTPAuth (11)
オブジェクト
- ENV (99)
キーワード
- != (11)
-
$ CHILD _ STATUS (11) - % (11)
- & (22)
- +@ (9)
- -@ (9)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - === (175)
- =~ (11)
- ConditionVariable (11)
- DEFAULT (2)
- Htpasswd (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - NKF (11)
- Numeric (11)
- OPS (11)
- Requirement (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Ruby用語集 (11)
- String (11)
- Win32ネイティブ版Rubyの互換性問題 (11)
- [] (95)
- ^ (22)
-
_ _ id _ _ (11) - afamily (11)
- allbits? (7)
- assoc (22)
-
backtrace
_ locations (11) -
basic
_ auth (11) - bigdecimal (11)
- call (25)
- chunk (22)
-
chunk
_ while (11) - clone (22)
- collect (11)
- count (66)
- crypt (11)
- dedup (2)
-
default
_ event _ sources (11) - define (4)
- delete (22)
-
delete
_ if (55) - detect (22)
- disasm (22)
- disassemble (22)
- div (11)
- divmod (22)
- downcase (8)
- dump (11)
- each (77)
-
each
_ key (11) -
each
_ line (44) -
each
_ pair (22) - eigen (11)
- eigensystem (11)
- empty (11)
- encode64 (11)
- eql? (214)
- equal? (11)
- file? (9)
- filter (12)
- filter! (12)
- find (44)
-
find
_ all (22) -
find
_ index (66) -
generate
_ prime (11) - getifaddrs (11)
- getpeername (11)
- getrlimit (11)
- group (11)
- hash (44)
- header (11)
- id2name (11)
- include? (38)
- index (33)
- intern (11)
- join (11)
-
keep
_ if (17) - key (7)
-
latest
_ gc _ info (11) - lazy (22)
-
line
_ stub (6) -
local
_ variable _ defined? (11) - lup (11)
-
lup
_ decomposition (11) - map (11)
-
marshal
_ dump (11) -
marshal
_ load (11) - max (118)
- member? (23)
-
memsize
_ of _ all (11) - min (118)
- minmax (10)
-
mod
_ inverse (11) - modulo (11)
- new (57)
- nobits? (7)
- none? (47)
- one? (47)
- pack (19)
- pack テンプレート文字列 (11)
- partition (22)
-
pending
_ interrupt? (11) - pfamily (11)
- produce (5)
- protocol (11)
- rassoc (22)
- rdoc (11)
- readline (11)
- rect (11)
- rectangular (11)
- reject (66)
- reject! (55)
- remainder (11)
- rindex (33)
-
root
_ node (11) - rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 8 . 5 feature (11) -
ruby 1
. 9 feature (11) -
satisfied
_ by? (11) - select (55)
- select! (17)
- slice (66)
-
slice
_ after (20) -
slice
_ before (33) -
slice
_ when (10) - socktype (11)
- sort (22)
- split (17)
- sqrt (7)
- string (11)
- sum (11)
- switch (44)
-
to
_ proc (11) -
to
_ s (11) -
to
_ sym (11) - tracer (11)
- tsort (11)
-
unicode
_ normalize! (10) - unpack (11)
-
webrick
/ cgi (11) - yaml (11)
- yield (11)
- | (22)
- クラス/メソッドの定義 (11)
- 制御構造 (11)
- 演算子式 (11)
検索結果
先頭5件
-
URI
:: Generic # ==(uri) -> bool (24306.0) -
引数に指定した URI (文字列またはURIオブジェクト)との一致判定を行い ます。URI は正規化して比較されます。
...た URI (文字列またはURIオブジェクト)との一致判定を行い
ます。URI は正規化して比較されます。
@param uri 比較したい URI を URI オブジェクトで指定します。
例:
require 'uri'
u1 = URI.parse('http://example.com/?hoge')
u2 = URI.parse('http:......//Example.Com/?hoge')
p u1 == u2 #=> true... -
DRb
:: DRbObject # ==(other) -> bool (24300.0) -
DRb::DRbObject オブジェクト同士が同じであるなら真を返します。
...DRb::DRbObject オブジェクト同士が同じであるなら真を返します。
この同値判定は、
オブジェクトが参照している URI と識別子が等しいかどうかでします。... -
Random
# ==(other) -> bool (21378.0) -
乱数生成器が等しい状態であるならばtrue を返します。
...乱数生成器が等しい状態であるならばtrue を返します。
@param other 比較対象の乱数生成器
//emlist[例][ruby]{
r1 = Random.new(1)
r2 = Random.new(1)
p r1 == r2 # => true
r2.rand
p r1 == r2 # => false
r1.rand
p r1 == r2 # => true
//}... -
Array
# ==(other) -> bool (21334.0) -
自身と other の各要素をそれぞれ順に == で比較し て、全要素が等しければ true を返します。そうでない場合には false を返します。
...と other の各要素をそれぞれ順に == で比較し
て、全要素が等しければ true を返します。そうでない場合には false を返します。
@param other 自身と比較したい配列を指定します。
@see Object#==
//emlist[例][ruby]{
[ "a", "c" ] == [ "a",......"c", 7 ] #=> false
[ "a", "c", 7 ] == [ "a", "c", 7 ] #=> true
[ "a", "c", 7 ] == [ "a", "d", "f" ] #=> false
//}... -
Range
# ==(other) -> bool (21334.0) -
指定された other が Range クラスのインスタンスであり、 始端と終端が == メソッドで比較して等しく、Range#exclude_end? が同じ場合に true を返します。そうでない場合に false を返します。
...指定された other が Range クラスのインスタンスであり、
始端と終端が == メソッドで比較して等しく、Range#exclude_end? が同じ場合に
true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェ......クトを指定します。
//emlist[例][ruby]{
p (1..2) == (1..2) # => true
p (1..2) == (1...2) # => false
p (1..2) == Range.new(1.0, 2.0) # => true
//}... -
Rational
# ==(other) -> bool (21330.0) -
数値として等しいか判定します。
...。
@param other 自身と比較する数値
@return 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
//}... -
Regexp
# ==(other) -> bool (21324.0) -
otherが同じパターン、オプション、文字コードの正規表現であったらtrueを返します。
...otherが同じパターン、オプション、文字コードの正規表現であったら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$/) # => true
//}... -
String
# ==(other) -> bool (21324.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
raise
end
p "string".eql?(str......inglike) #=> false
p "string" == stringlike #=> true
//}
@see String#eql?... -
Struct
# ==(other) -> bool (21322.0) -
self と other のクラスが同じであり、各メンバが == メソッドで比較して等しい場合に true を返します。そうでない場合に false を返します。
...f と other のクラスが同じであり、各メンバが == メソッドで比較して等しい場合に
true を返します。そうでない場合に 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?... -
CSV
:: Row # ==(other) -> bool (21312.0) -
自身が other と同じヘッダやフィールドを持つ場合に真を返します。 そうでない場合は偽を返します。
...r と同じヘッダやフィールドを持つ場合に真を返します。
そうでない場合は偽を返します。
@param other 比較対象の CSV::Row のインスタンスを指定します。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "r......ow1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row1 == row2 # => true
row2 << ["header3", "row1_3"]
row1 == row2 # => false
//}...