2839件ヒット
[101-200件を表示]
(0.045秒)
クラス
-
ARGF
. class (88) - Array (383)
- BasicObject (44)
- Bignum (9)
- Binding (11)
- Complex (11)
- Data (8)
- Enumerator (23)
-
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Lazy (118) - Exception (22)
- FalseClass (33)
- File (22)
- Fixnum (3)
- Float (33)
- Hash (161)
- Integer (43)
- KeyError (7)
- MatchData (22)
- Method (61)
- Module (11)
- Numeric (66)
- Object (77)
- Proc (55)
-
Process
:: Status (11) - Random (35)
- Range (126)
- Rational (11)
- Regexp (33)
-
RubyVM
:: InstructionSequence (44) - String (314)
- Struct (22)
- Symbol (33)
- SystemCallError (11)
- Thread (22)
- Time (44)
- TrueClass (33)
- UnboundMethod (44)
モジュール
- Comparable (11)
- Enumerable (422)
- GC (22)
- Math (22)
- Process (11)
-
Process
:: GID (22) -
Process
:: UID (22)
オブジェクト
- ENV (132)
キーワード
- != (11)
- % (11)
- & (22)
- +@ (9)
- -@ (9)
- === (109)
- ConditionVariable (9)
- DEFAULT (2)
- GID (11)
- Lazy (11)
- Numeric (11)
- String (11)
- Symbol (11)
- UID (11)
- [] (84)
- ^ (22)
-
_ _ id _ _ (11) - acos (11)
- allbits? (7)
- asin (11)
- assoc (22)
-
backtrace
_ locations (11) - call (25)
- chunk (22)
-
chunk
_ while (11) - clone (22)
- collect (11)
- count (66)
- crypt (11)
- dedup (2)
- define (4)
- delete (22)
-
delete
_ if (44) - detect (22)
- disasm (22)
- disassemble (22)
- div (11)
- divmod (22)
- downcase (8)
- dump (11)
- dup (11)
- each (66)
-
each
_ key (22) -
each
_ line (44) -
each
_ pair (22) - eql? (104)
- equal? (11)
- filter (12)
- filter! (12)
- find (22)
-
find
_ all (22) -
find
_ index (66) - getgm (11)
- getlocal (22)
- getrlimit (11)
- getutc (11)
- group (11)
-
has
_ value? (11) - hash (44)
- id2name (11)
- include? (27)
- index (33)
- intern (11)
- itself (11)
-
keep
_ if (22) - key (7)
-
latest
_ gc _ info (22) - lazy (22)
-
local
_ variable _ defined? (11) - lstat (22)
- map (11)
-
marshal
_ dump (11) -
marshal
_ load (11) - max (118)
- member? (16)
- min (118)
- minmax (10)
- modulo (11)
- new (46)
- nobits? (7)
- none? (47)
- one? (47)
- pack (19)
- partition (22)
-
pending
_ interrupt? (11) - produce (5)
- rassoc (22)
- reject (66)
- reject! (44)
- remainder (11)
- rindex (33)
- select (22)
- select! (22)
- slice (66)
-
slice
_ after (20) -
slice
_ before (33) -
slice
_ when (10) - sort (22)
- split (17)
- sqrt (7)
- sum (11)
- switch (44)
-
to
_ h (17) -
to
_ hash (11) -
to
_ proc (11) -
to
_ s (11) -
to
_ sym (11) -
unicode
_ normalize! (10) - unpack (11)
- value? (11)
- yield (11)
- | (22)
検索結果
先頭5件
-
Regexp
# ==(other) -> bool (18126.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 (18126.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 (18124.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 (18120.0) -
数値として等しいか判定します。
...数値として等しいか判定します。
@param other 自身と比較する数値
//emlist[例][ruby]{
Complex(2, 1) == Complex(1) # => false
Complex(1, 0) == Complex(1) # => true
Complex(1, 0) == 1 # => true
//}... -
Random
# ==(other) -> bool (18120.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
//}... -
BasicObject
# ==(other) -> bool (18114.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?... -
Comparable
# ==(other) -> bool (18114.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が 0 を返した時に、true を返します。 それ以外を返した場合は、false を返します。
...ジェクト同士を比較します。
<=> が 0 を返した時に、true を返します。
それ以外を返した場合は、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
1 == 1 # => true
1 == 2 # => false
//}... -
Integer
# ==(other) -> bool (18114.0) -
比較演算子。数値として等しいか判定します。
...比較演算子。数値として等しいか判定します。
@param other 比較対象の数値
@return self と other が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 == 2 # => false
1 == 1.0 # => true
//}... -
Symbol
# ==(other) -> true | false (18114.0) -
other が同じシンボルの時に真を返します。 そうでない場合は偽を返します。
...other が同じシンボルの時に真を返します。
そうでない場合は偽を返します。
@param other 比較対象のシンボルを指定します。
例:
:aaa == :aaa #=> true
:aaa == :xxx #=> false... -
UnboundMethod
# ==(other) -> bool (18114.0) -
自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
...@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
a = String.instance_method(:size)
b = String.instance_method(:size)
p a == b #=> true
c = Array.instance_method(:size)
p a == c #=> false
//}...