2064件ヒット
[1-100件を表示]
(0.108秒)
別のキーワード
ライブラリ
- ビルトイン (1412)
- bigdecimal (12)
-
cgi
/ core (24) - dbm (12)
- digest (24)
- fiddle (24)
- gdbm (12)
- ipaddr (36)
- matrix (48)
-
net
/ ftp (10) - openssl (108)
- ostruct (12)
- pathname (48)
- prime (24)
-
rinda
/ rinda (12) -
rubygems
/ package / tar _ header (12) -
rubygems
/ platform (24) -
rubygems
/ requirement (36) -
rubygems
/ version (12) - sdbm (36)
- set (42)
- socket (48)
- uri (12)
- win32ole (12)
- zlib (12)
クラス
- Addrinfo (36)
- Array (239)
- BasicObject (12)
- BasicSocket (12)
- BigDecimal (12)
- CGI (24)
- Complex (12)
- DBM (12)
- Data (6)
-
Digest
:: Base (24) -
Enumerator
:: Lazy (47) - Exception (24)
- FalseClass (36)
-
Fiddle
:: Pointer (24) - File (12)
- GDBM (12)
-
Gem
:: Package :: TarHeader (12) -
Gem
:: Platform (24) -
Gem
:: Requirement (36) -
Gem
:: Version (12) - Hash (89)
- IPAddr (36)
- KeyError (8)
- Matrix (48)
- Method (36)
- Module (12)
-
Net
:: FTP :: MLSxEntry (10) - Numeric (60)
- Object (60)
-
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) - Random (36)
- Range (34)
- Regexp (36)
-
Rinda
:: DRbObjectTemplate (12) - SDBM (36)
- Set (60)
- String (259)
- Struct (24)
- Symbol (24)
- Thread (12)
- Time (48)
- TrueClass (36)
-
URI
:: Generic (12) - UnboundMethod (36)
-
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipReader (12)
モジュール
- Comparable (12)
- Enumerable (112)
キーワード
- != (12)
- % (12)
- & (24)
- === (140)
- =~ (12)
- [] (84)
- ^ (24)
- assoc (12)
-
backtrace
_ locations (12) - call (12)
-
chunk
_ while (12) - clone (12)
- crypt (12)
- dedup (3)
-
default
_ event _ sources (12) - delete (24)
-
delete
_ if (36) - detect (24)
- div (12)
- divide (24)
- downcase (9)
- dump (12)
- dup (12)
- each (24)
- eigen (12)
- eigensystem (12)
- eql? (147)
- file? (10)
- find (24)
-
find
_ index (36) - getgm (12)
- getlocal (24)
- getpeername (12)
- getutc (12)
- group (12)
-
has
_ value? (12) - hash (36)
- header (12)
- id2name (12)
- include? (25)
- index (36)
- intern (12)
- join (12)
-
keep
_ if (24) - key (8)
- lazy (24)
- lineno= (12)
- lstat (12)
- lup (12)
-
lup
_ decomposition (12) - map (12)
-
marshal
_ dump (12) -
marshal
_ load (12) - member? (13)
-
mod
_ inverse (12) - modulo (12)
- none? (15)
- one? (15)
- out (12)
- pack (21)
- partition (24)
- pfamily (12)
- protocol (12)
- rassoc (12)
- reject! (36)
- remainder (12)
- rindex (36)
-
satisfied
_ by? (12) - select (36)
- select! (10)
- sign (12)
- slice (72)
-
slice
_ after (11) -
slice
_ before (12) - socktype (12)
- split (19)
-
to
_ h (19) -
to
_ hash (12) -
to
_ proc (12) -
to
_ s (12) -
to
_ sym (12) - unpack (12)
- value? (12)
- yield (12)
- | (24)
検索結果
先頭5件
-
IPAddr
# ==(ipaddr) -> bool (21213.0) -
IPAddr オブジェクト同士が等しいかを比較します。
...IPAddr オブジェクト同士が等しいかを比較します。
@param ipaddr 比較対象の IPAddr オブジェクト。
また、数値や文字列も受け付けます。
例:
require "ipaddr"
p IPAddr.new("192.168.0.1") == IPAddr.new("192.168.0.1/24") # => false... -
Exception
# ==(other) -> bool (21159.0) -
自身と指定された other のクラスが同じであり、 message と backtrace が == メソッドで比較して 等しい場合に true を返します。そうでない場合に false を返します。
...身と指定された other のクラスが同じであり、
message と backtrace が == メソッドで比較して
等しい場合に true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。......定した場合は
Exception#exception を実行して変換を試みます。
//emlist[例][ruby]{
require "date"
def check_long_month(month)
return if Date.new(2000, month, -1).day == 31
raise "#{month} is not long month"
end
def get_exception
return begin
yield
rescue =......ap { |e | get_exception { check_long_month(e) } }
p results.map { |e| e.class }
# => [RuntimeError, RuntimeError, RuntimeError]
p results.map { |e| e.message }
# => ["2 is not long month", "2 is not long month", "4 is not long month"]
# class, message, backtrace が同一のため true になる
p... -
Regexp
# ==(other) -> bool (21155.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$/) # => tru... -
Pathname
# ==(other) -> bool (21137.0) -
パス名を比較し、 other と同じなら真を返します。大文字小文字は区別されます。 other は Pathname オブジェクトでなければなりません。
...。
other は Pathname オブジェクトでなければなりません。
パス名の比較は単純にパス文字列の比較によって行われるので、論理的に
同じパスでもパス文字列が違えば異なると判断されます。
@param other 比較対象の 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
//}... -
Fiddle
:: Pointer # ==(other) -> bool (21125.0) -
ポインタの指すアドレスが同一ならばtrueを返します。
...タの指すアドレスが同一ならばtrueを返します。
@param other 比較対象の Pointer オブジェクト
例:
require 'fiddle'
s = 'abc'
cptr = Fiddle::Pointer[s]
cptr0 = Fiddle::Pointer[s]
cptr1 = cptr + 1
p cptr == cptr1 #=> false
p cptr == cptr0 #=> true... -
Complex
# ==(other) -> bool (21119.0) -
数値として等しいか判定します。
...数値として等しいか判定します。
@param other 自身と比較する数値
//emlist[例][ruby]{
Complex(2, 1) == Complex(1) # => false
Complex(1, 0) == Complex(1) # => true
Complex(1, 0) == 1 # => true
//}... -
Comparable
# ==(other) -> bool (21113.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が 0 を返した時に、true を返します。 それ以外を返した場合は、false を返します。
...ジェクト同士を比較します。
<=> が 0 を返した時に、true を返します。
それ以外を返した場合は、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
1 == 1 # => true
1 == 2 # => false
//}... -
Gem
:: Package :: TarHeader # ==(other) -> bool (21101.0) -
自身と other が等しければ真を返します。 そうでない場合は偽を返します。
...自身と other が等しければ真を返します。
そうでない場合は偽を返します。
@param other 比較対象のオブジェクトを指定します。... -
Gem
:: Platform # ==(other) -> bool (21101.0) -
自身と other が同じプラットフォームである場合に真を返します。 そうでない場合は偽を返します。
...ムである場合に真を返します。
そうでない場合は偽を返します。
同じプラットフォームであるとは、二つのプラットフォームの
CPU, OS, バージョンが同じであるということです。
@param other 比較対象のオブジェクトです。...