757件ヒット
[1-100件を表示]
(0.091秒)
クラス
-
ARGF
. class (48) - Addrinfo (12)
- Array (93)
- Bignum (3)
-
CSV
:: Table (24) - Delegator (12)
-
Enumerator
:: ArithmeticSequence (7) -
Enumerator
:: Lazy (129) - Hash (62)
- Matrix (48)
- Object (24)
-
OpenSSL
:: BN (12) - Prime (24)
- Proc (12)
-
Process
:: Status (12) -
Rake
:: FileList (12) - String (60)
- Symbol (24)
- Vector (24)
モジュール
- Enumerable (115)
キーワード
- === (12)
- chunk (24)
-
chunk
_ while (12) - clone (12)
- collect (12)
-
delete
_ if (36) - detect (12)
- dup (12)
- each (48)
-
each
_ line (24) - eigen (12)
- eigensystem (12)
- eql? (15)
- filter (7)
- filter! (7)
- find (12)
-
find
_ all (12) -
find
_ index (24) - id2name (12)
- index (12)
- intern (12)
-
keep
_ if (12) - lazy (24)
- lup (12)
-
lup
_ decomposition (12) - map (12)
-
mod
_ inverse (12) - pack (21)
- partition (12)
- protocol (12)
- reject (24)
- reject! (12)
- rindex (12)
- select (12)
- select! (12)
-
slice
_ after (22) -
slice
_ before (36) -
slice
_ when (11) -
to
_ h (19) -
to
_ hash (12) -
to
_ proc (12) -
to
_ s (12) -
to
_ sym (12) - unpack (12)
検索結果
先頭5件
-
Delegator
# ==(obj) -> bool (21101.0) -
自身が与えられたオブジェクトと等しい場合は、真を返します。 そうでない場合は、偽を返します。
自身が与えられたオブジェクトと等しい場合は、真を返します。
そうでない場合は、偽を返します。
@param obj 比較対象のオブジェクトを指定します。 -
Enumerator
:: ArithmeticSequence # ==(other) -> bool (21101.0) -
Enumerable::ArithmeticSequence として等しいか判定します。
Enumerable::ArithmeticSequence として等しいか判定します。
other が Enumerable::ArithmeticSequence で
begin, end, step, exclude_end? が等しい時に
true を返します。
@param other 自身と比較する Enumerable::ArithmeticSequence -
Vector
# ==(v) -> bool (21101.0) -
自分自身と引数 v を比較し、true/false を返します。
自分自身と引数 v を比較し、true/false を返します。
@param v 比較対象ベクトル -
String
# ==(other) -> bool (18143.0) -
other が文字列の場合、String#eql? と同様に文字列の内容を比較します。
...eql? と同様に文字列の内容を比較します。
other が文字列でない場合、
other.to_str が定義されていれば
other == self の結果を返します。(ただし、 other.to_str は実行されません。)
そうでなければ false を返します。
@param other 任......st[例][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?... -
Rake
:: FileList # ==(array) -> bool (18113.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
//}... -
Process
:: Status # ==(other) -> bool (18107.0) -
同じステータスの場合に真を返します。
...同じステータスの場合に真を返します。
other が数値の場合、self.to_i との比較が行われます。こ
れは後方互換性のためです。
@param other 自身と比較したいオブジェクトを指定します。... -
String
# ===(other) -> bool (9243.0) -
other が文字列の場合、String#eql? と同様に文字列の内容を比較します。
...eql? と同様に文字列の内容を比較します。
other が文字列でない場合、
other.to_str が定義されていれば
other == self の結果を返します。(ただし、 other.to_str は実行されません。)
そうでなければ false を返します。
@param other 任......st[例][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?... -
Hash
# to _ h -> self | Hash (6139.0) -
self を返します。Hash クラスのサブクラスから呼び出した場合は self を Hash オブジェクトに変換します。
...トに変換します。
//emlist[例][ruby]{
hash = {}
p hash.to_h # => {}
p hash.to_h == hash # => true
class MyHash < Hash;end
my_hash = MyHash.new
p my_hash.to_h # => {}
p my_hash.class # => MyHash
p my_hash.to_h.class # => Hash
//}
ブロックを指定すると各ペア......でブロックを呼び出し、
その結果をペアとして使います。
//emlist[ブロック付きの例][ruby]{
hash = { "a" => 97, "b" => 98 }
hash.to_h {|key, value| [key.upcase, value-32] } # => {"A"=>65, "B"=>66}
//}
@see Enumerable#map... -
Hash
# to _ h {|key , value| block } -> Hash (6139.0) -
self を返します。Hash クラスのサブクラスから呼び出した場合は self を Hash オブジェクトに変換します。
...トに変換します。
//emlist[例][ruby]{
hash = {}
p hash.to_h # => {}
p hash.to_h == hash # => true
class MyHash < Hash;end
my_hash = MyHash.new
p my_hash.to_h # => {}
p my_hash.class # => MyHash
p my_hash.to_h.class # => Hash
//}
ブロックを指定すると各ペア......でブロックを呼び出し、
その結果をペアとして使います。
//emlist[ブロック付きの例][ruby]{
hash = { "a" => 97, "b" => 98 }
hash.to_h {|key, value| [key.upcase, value-32] } # => {"A"=>65, "B"=>66}
//}
@see Enumerable#map... -
Hash
# to _ h -> self | Hash (6132.0) -
self を返します。Hash クラスのサブクラスから呼び出した場合は self を Hash オブジェクトに変換します。
...場合は
self を Hash オブジェクトに変換します。
//emlist[例][ruby]{
hash = {}
p hash.to_h # => {}
p hash.to_h == hash # => true
class MyHash < Hash;end
my_hash = MyHash.new
p my_hash.to_h # => {}
p my_hash.class # => MyHash
p my_hash.to_h.class # => Hash
//}... -
Hash
# to _ hash -> self (6132.0) -
self を返します。
...self を返します。
//emlist[例][ruby]{
hash = {}
p hash.to_hash # => {}
p hash.to_hash == hash # => true
//}
@see Object#to_hash, Hash#to_h...