3132件ヒット
[101-200件を表示]
(0.208秒)
ライブラリ
- ビルトイン (3132)
クラス
-
ARGF
. class (96) - Array (423)
- BasicObject (48)
- Bignum (9)
- Binding (12)
- Complex (12)
- Data (12)
- Enumerator (25)
-
Enumerator
:: ArithmeticSequence (7) -
Enumerator
:: Lazy (129) - Exception (24)
- FalseClass (36)
- File (24)
- Fixnum (3)
- Float (36)
- Hash (177)
- Integer (48)
- KeyError (8)
- MatchData (24)
- Method (68)
- Module (12)
- Numeric (72)
- Object (84)
- Proc (60)
-
Process
:: Status (12) - Random (38)
- Range (138)
- Rational (12)
- Regexp (36)
-
RubyVM
:: InstructionSequence (48) - Set (18)
- String (345)
- Struct (24)
- Symbol (36)
- SystemCallError (12)
- Thread (24)
- Time (48)
- TrueClass (36)
- UnboundMethod (48)
モジュール
- Comparable (12)
- Enumerable (462)
- GC (24)
- Math (24)
- Process (12)
-
Process
:: GID (24) -
Process
:: UID (24)
オブジェクト
- ENV (144)
キーワード
- != (12)
- % (12)
- & (24)
- +@ (10)
- -@ (10)
- === (122)
- ConditionVariable (10)
- DEFAULT (2)
- GID (12)
- Lazy (12)
- Numeric (12)
- String (12)
- Symbol (12)
- UID (12)
- [] (92)
- ^ (24)
-
_ _ id _ _ (12) - acos (12)
- allbits? (8)
- asin (12)
- assoc (24)
-
backtrace
_ locations (12) - call (28)
- chunk (24)
-
chunk
_ while (12) - clone (24)
- collect (12)
- count (72)
- crypt (12)
- dedup (3)
- define (6)
- delete (24)
-
delete
_ if (48) - detect (24)
- disasm (24)
- disassemble (24)
- div (12)
- divide (6)
- divmod (24)
- downcase (9)
- dump (12)
- dup (12)
- each (72)
-
each
_ key (24) -
each
_ line (48) -
each
_ pair (24) - eql? (114)
- equal? (12)
- filter (14)
- filter! (14)
- find (24)
-
find
_ all (24) -
find
_ index (72) - getgm (12)
- getlocal (24)
- getrlimit (12)
- getutc (12)
- group (12)
-
has
_ value? (12) - hash (48)
- id2name (12)
- include? (32)
- index (36)
- intern (12)
- itself (12)
-
keep
_ if (24) - key (8)
-
latest
_ gc _ info (24) - lazy (24)
-
local
_ variable _ defined? (12) - lstat (24)
- map (12)
-
marshal
_ dump (12) -
marshal
_ load (12) - max (130)
- member? (20)
- min (130)
- minmax (12)
- modulo (12)
- new (50)
- nobits? (8)
- none? (53)
- one? (53)
- pack (21)
- partition (24)
-
pending
_ interrupt? (12) - produce (6)
- rassoc (24)
- reject (72)
- reject! (48)
- remainder (12)
- rindex (36)
- select (24)
- select! (24)
- slice (72)
-
slice
_ after (22) -
slice
_ before (36) -
slice
_ when (11) - sort (24)
- split (19)
- sqrt (8)
- sum (12)
- switch (48)
-
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 (26124.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 (26124.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 (26122.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 (26118.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 (26118.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 (26112.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 (26112.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が 0 を返した時に、true を返します。 それ以外を返した場合は、false を返します。
...ジェクト同士を比較します。
<=> が 0 を返した時に、true を返します。
それ以外を返した場合は、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
1 == 1 # => true
1 == 2 # => false
//}... -
Integer
# ==(other) -> bool (26112.0) -
比較演算子。数値として等しいか判定します。
...比較演算子。数値として等しいか判定します。
@param other 比較対象の数値
@return self と other が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 == 2 # => false
1 == 1.0 # => true
//}... -
Set
# ==(set) -> bool (26112.0) -
2 つの集合が等しいときに true を返します。
...には、false を返します。
要素の等しさは Object#eql? により判定されます。
@param set 比較対象のオブジェクトを指定します。
//emlist[][ruby]{
s1 = Set[10, 20, 30]
s2 = Set[10, 30, 40]
s3 = Set[30, 10, 30, 20]
p s1 == s2 # => false
p s1 == s3 # => true
//}... -
Symbol
# ==(other) -> true | false (26112.0) -
other が同じシンボルの時に真を返します。 そうでない場合は偽を返します。
...other が同じシンボルの時に真を返します。
そうでない場合は偽を返します。
@param other 比較対象のシンボルを指定します。
例:
:aaa == :aaa #=> true
:aaa == :xxx #=> false...