3666件ヒット
[101-200件を表示]
(0.090秒)
ライブラリ
- ビルトイン (2666)
- bigdecimal (48)
-
cgi
/ core (24) - csv (60)
- date (12)
- dbm (12)
- delegate (12)
- digest (24)
- drb (24)
- fiddle (24)
- gdbm (12)
- ipaddr (36)
- matrix (120)
-
net
/ ftp (10) - openssl (108)
- ostruct (12)
- pathname (48)
- prime (24)
- rake (24)
-
rdoc
/ context (12) -
rexml
/ document (60) -
rinda
/ rinda (12) -
rubygems
/ package / tar _ header (12) -
rubygems
/ platform (24) -
rubygems
/ requirement (36) -
rubygems
/ version (12) - sdbm (36)
- set (42)
- socket (60)
- strscan (12)
- uri (12)
- win32ole (24)
- zlib (12)
クラス
-
ARGF
. class (96) - Addrinfo (48)
- Array (423)
- BasicObject (48)
- BasicSocket (12)
- BigDecimal (48)
- Bignum (9)
- Binding (12)
- CGI (24)
-
CSV
:: Row (24) -
CSV
:: Table (36) - Complex (12)
- DBM (12)
-
DRb
:: DRbObject (24) - Data (6)
- Date (12)
- Delegator (12)
-
Digest
:: Base (24) -
Enumerator
:: ArithmeticSequence (7) -
Enumerator
:: Lazy (129) - Exception (24)
- FalseClass (36)
-
Fiddle
:: Pointer (24) - File (12)
- Fixnum (3)
- Float (36)
- GDBM (12)
-
Gem
:: Package :: TarHeader (12) -
Gem
:: Platform (24) -
Gem
:: Requirement (36) -
Gem
:: Version (12) - Hash (177)
- IPAddr (36)
- Integer (40)
- KeyError (8)
- MatchData (24)
- Matrix (96)
- Method (68)
- Module (12)
-
Net
:: FTP :: MLSxEntry (10) - Numeric (72)
- Object (84)
-
OpenSSL
:: BN (48) -
OpenSSL
:: PKey :: EC :: Group (24) -
OpenSSL
:: PKey :: EC :: Point (24) -
OpenSSL
:: SSL :: Session (12) - OpenStruct (12)
- Pathname (48)
- Prime (24)
- Proc (60)
-
Process
:: Status (12) -
RDoc
:: Context :: Section (12) -
REXML
:: Attribute (12) -
REXML
:: Comment (12) -
REXML
:: Element (12) -
REXML
:: Instruction (12) -
REXML
:: XMLDecl (12) -
Rake
:: FileList (12) - Random (36)
- Range (138)
- Rational (12)
- Regexp (36)
-
Rinda
:: DRbObjectTemplate (12) -
RubyVM
:: InstructionSequence (24) - SDBM (36)
- Set (60)
- String (314)
- StringScanner (12)
- Struct (24)
- Symbol (36)
- Thread (12)
- Time (48)
- TrueClass (36)
-
URI
:: Generic (12) - UnboundMethod (48)
- Vector (24)
- WIN32OLE (12)
-
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipReader (12)
モジュール
- Comparable (12)
- Enumerable (462)
-
Rake
:: Cloneable (12)
キーワード
- != (12)
- % (12)
- & (24)
- +@ (10)
- -@ (10)
- === (211)
- =~ (12)
- [] (92)
- ^ (24)
-
_ _ id _ _ (12) - afamily (12)
- allbits? (8)
- assoc (24)
-
backtrace
_ locations (12) - call (28)
- chunk (24)
-
chunk
_ while (12) - clone (36)
- collect (12)
- count (72)
- crypt (12)
- dedup (3)
-
default
_ event _ sources (12) - delete (24)
-
delete
_ if (72) - detect (24)
- disasm (12)
- disassemble (12)
- div (12)
- divide (24)
- divmod (24)
- downcase (9)
- dump (12)
- dup (12)
- each (72)
-
each
_ line (48) - eigen (12)
- eigensystem (12)
- eql? (234)
- equal? (12)
- file? (10)
- filter (14)
- filter! (14)
- find (24)
-
find
_ all (24) -
find
_ index (72) - getgm (12)
- getlocal (24)
- getpeername (12)
- getutc (12)
- group (12)
-
has
_ value? (12) - hash (48)
- header (12)
- id2name (12)
- include? (49)
- index (36)
- intern (12)
- itself (12)
- join (12)
-
keep
_ if (24) - key (8)
- lazy (24)
- lineno= (12)
-
local
_ variable _ defined? (12) - lstat (12)
- lup (12)
-
lup
_ decomposition (12) - map (12)
-
marshal
_ dump (12) -
marshal
_ load (12) - max (130)
- member? (25)
- min (130)
- minmax (12)
-
mod
_ inverse (12) - modulo (12)
- nobits? (8)
- none? (53)
-
ole
_ func _ methods (12) - one? (53)
- out (12)
- pack (21)
- partition (24)
- pfamily (12)
- protocol (12)
- rassoc (24)
- rect (12)
- rectangular (12)
- reject (48)
- reject! (36)
- remainder (12)
- rindex (36)
-
root
_ node (12) -
satisfied
_ by? (12) - select (60)
- select! (24)
- sign (12)
- slice (72)
-
slice
_ after (22) -
slice
_ before (36) -
slice
_ when (11) - socktype (12)
- sort (24)
- split (19)
- string (12)
- sum (12)
-
to
_ h (19) -
to
_ hash (12) -
to
_ proc (12) -
to
_ s (12) -
to
_ sym (12) -
unicode
_ normalize! (11) - unpack (12)
- value? (12)
- yield (12)
- | (24)
検索結果
先頭5件
-
Regexp
# ==(other) -> bool (18125.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$/) # => true
//}... -
String
# ==(other) -> bool (18125.0) -
other が文字列の場合、String#eql? と同様に文字列の内容を比較します。
... == self の結果を返します。(ただし、 other.to_str は実行されません。)
そうでなければ false を返します。
@param 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?(stringlike) #=> false
p "string" == stringlike #=> true
//}
@see String#eql?... -
Struct
# ==(other) -> bool (18123.0) -
self と other のクラスが同じであり、各メンバが == メソッドで比較して等しい場合に true を返します。そうでない場合に false を返します。
...self と other のクラスが同じであり、各メンバが == メソッドで比較して等しい場合に
true を返します。そうでない場合に false を返します。
@param other self と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
Dog = Struct.n......ew(:name, :age)
dog1 = Dog.new("fred", 5)
dog2 = Dog.new("fred", 5)
p dog1 == dog2 #=> true
p dog1.eql?(dog2) #=> true
p dog1.equal?(dog2) #=> false
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して呼び
出す... -
Complex
# ==(other) -> bool (18119.0) -
数値として等しいか判定します。
...数値として等しいか判定します。
@param other 自身と比較する数値
//emlist[例][ruby]{
Complex(2, 1) == Complex(1) # => false
Complex(1, 0) == Complex(1) # => true
Complex(1, 0) == 1 # => true
//}... -
Pathname
# ==(other) -> bool (18119.0) -
パス名を比較し、 other と同じなら真を返します。大文字小文字は区別されます。 other は Pathname オブジェクトでなければなりません。
...の 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
//}... -
Random
# ==(other) -> bool (18119.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
//}... -
Digest
:: Base # ==(md) -> bool (18114.0) -
与えられたダイジェストオブジェクトと比較します。
...ェストオブジェクト
require 'digest/md5'
digest1 = Digest::MD5.new
digest1.update("ruby")
digest2 = Digest::MD5.new
digest2.update("ruby")
p digest1 == digest2 # => true
digest2.update("RUBY")
p digest1 == digest2 # => false... -
BasicObject
# ==(other) -> bool (18113.0) -
オブジェクトが other と等しければ真を、さもなくば偽を返します。
...Person < BasicObject
def initialize(name, age)
@name = name
@age = age
end
end
tanaka1 = Person.new("tanaka", 24)
tanaka2 = Person.new("tanaka", 24)
tanaka1 == tanaka1 #=> true
tanaka1 == tanaka2 #=> false
//}
@see BasicObject#equal?, Object#==, Object#equal?,
Object#eql?... -
CSV
:: Row # ==(other) -> bool (18113.0) -
自身が other と同じヘッダやフィールドを持つ場合に真を返します。 そうでない場合は偽を返します。
...:Row のインスタンスを指定します。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row1 == row2 # => true
row2 << ["header3", "row1_3"]
row1 == row2 # => false
//}...