種類
- インスタンスメソッド (60)
- 定数 (44)
- モジュール関数 (33)
クラス
-
OpenSSL
:: OCSP :: CertificateId (22) - Socket (22)
- String (19)
- Symbol (19)
モジュール
- FileUtils (33)
-
Socket
:: Constants (22)
キーワード
-
IPPROTO
_ ICMP (22) -
IPPROTO
_ ICMPV6 (22) - casecmp (22)
- casecmp? (16)
-
cmp
_ issuer (11) -
compare
_ file (11) - identical? (11)
検索結果
先頭5件
-
FileUtils
. # cmp(file _ a , file _ b) -> bool (24413.0) -
ファイル file_a と file_b の内容が同じなら真を返します。
...ファイル file_a と file_b の内容が同じなら真を返します。
@param file_a ファイル名。
@param file_b ファイル名。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cmp('somefile', 'somefile') #=> true
FileUtils.cmp('/dev/null', '/dev/urandom') #=> false
//}... -
OpenSSL
:: OCSP :: CertificateId # cmp(other) -> bool (21207.0) -
2つの CertificateId オブジェクトを比較し、 同じものであれば真を返します。
...2つの CertificateId オブジェクトを比較し、
同じものであれば真を返します。
@param other 比較する OpenSSL::OCSP::CertificateId オブジェクト
@see OpenSSL::OCSP::CertificateId#cmp_issuer... -
FileUtils
. # compare _ file(file _ a , file _ b) -> bool (12413.0) -
ファイル file_a と file_b の内容が同じなら真を返します。
...ファイル file_a と file_b の内容が同じなら真を返します。
@param file_a ファイル名。
@param file_b ファイル名。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cmp('somefile', 'somefile') #=> true
FileUtils.cmp('/dev/null', '/dev/urandom') #=> false
//}... -
OpenSSL
:: OCSP :: CertificateId # cmp _ issuer(other) -> bool (12307.0) -
2つの CertificateId オブジェクトの issuer(証明書発行者)を比較し、 同じ issuer であれば真を返します。
...2つの CertificateId オブジェクトの issuer(証明書発行者)を比較し、
同じ issuer であれば真を返します。
@param other 比較する OpenSSL::OCSP::CertificateId オブジェクト
@see OpenSSL::OCSP::CertificateId#cmp... -
Socket
:: Constants :: IPPROTO _ ICMP -> Integer (12300.0) -
Control message protocol。 BasicSocket#getsockopt, BasicSocket#setsockopt の level 引数に使用します。
...Control message protocol。
BasicSocket#getsockopt, BasicSocket#setsockopt の
level 引数に使用します。
また、Socket.open の protocol 引数に渡す利用法もあります。
@see netinet/in.h(header)
icmp(4freebsd), icmp(7linux)... -
Socket
:: Constants :: IPPROTO _ ICMPV6 -> Integer (12300.0) -
Internet Control Message Protocol for IPv6。 BasicSocket#getsockopt, BasicSocket#setsockopt の level 引数に使用します。
...Internet Control Message Protocol for IPv6。
BasicSocket#getsockopt, BasicSocket#setsockopt の
level 引数に使用します。
また、Socket.open の protocol 引数に渡す利用法もあります。
@see icmp6(4freebsd), 2292... -
Socket
:: IPPROTO _ ICMP -> Integer (12300.0) -
Control message protocol。 BasicSocket#getsockopt, BasicSocket#setsockopt の level 引数に使用します。
...Control message protocol。
BasicSocket#getsockopt, BasicSocket#setsockopt の
level 引数に使用します。
また、Socket.open の protocol 引数に渡す利用法もあります。
@see netinet/in.h(header)
icmp(4freebsd), icmp(7linux)... -
Socket
:: IPPROTO _ ICMPV6 -> Integer (12300.0) -
Internet Control Message Protocol for IPv6。 BasicSocket#getsockopt, BasicSocket#setsockopt の level 引数に使用します。
...Internet Control Message Protocol for IPv6。
BasicSocket#getsockopt, BasicSocket#setsockopt の
level 引数に使用します。
また、Socket.open の protocol 引数に渡す利用法もあります。
@see icmp6(4freebsd), 2292... -
FileUtils
. # identical?(file _ a , file _ b) -> bool (12213.0) -
ファイル file_a と file_b の内容が同じなら真を返します。
...ファイル file_a と file_b の内容が同じなら真を返します。
@param file_a ファイル名。
@param file_b ファイル名。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cmp('somefile', 'somefile') #=> true
FileUtils.cmp('/dev/null', '/dev/urandom') #=> false
//}... -
String
# casecmp(other) -> -1 | 0 | 1 | nil (9331.0) -
String#<=> と同様に文字列の順序を比較しますが、 アルファベットの大文字小文字の違いを無視します。
...String#<=> と同様に文字列の順序を比較しますが、
アルファベットの大文字小文字の違いを無視します。
このメソッドの動作は組み込み変数 $= には影響されません。
String#casecmp? と違って大文字小文字の違いを無視するの......は
Unicode 全体ではなく、A-Z/a-z だけです。
@param other self と比較する文字列
//emlist[例][ruby]{
"aBcDeF".casecmp("abcde") #=> 1
"aBcDeF".casecmp("abcdef") #=> 0
"aBcDeF".casecmp("abcdefg") #=> -1
"abcdef".casecmp("ABCDEF") #=> 0
//}
nil は文字列のエ......ンコーディングが非互換の時に返されます。
//emlist[][ruby]{
"\u{e4 f6 fc}".encode("ISO-8859-1").casecmp("\u{c4 d6 dc}") #=> nil
//}
@see String#<=>, Encoding.compatible?...