24件ヒット
[1-24件を表示]
(0.066秒)
別のキーワード
クラス
-
Fiddle
:: Pointer (12) - Pathname (12)
検索結果
-
Fiddle
:: Pointer # eql?(other) -> bool (15113.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 #... -
Pathname
# eql?(other) -> bool (15113.0) -
パス名を比較し、 other と同じなら真を返します。大文字小文字は区別されます。 other は Pathname オブジェクトでなければなりません。
...、論理的に
同じパスでもパス文字列が違えば異なると判断されます。
@param other 比較対象の Pathname オブジェクトを指定します。
//emlist[例][ruby]{
require 'pathname'
p Pathname.new("foo/bar") == Pathname.new("foo/bar")
p Pathname.new("foo/bar") == Pa...