70件ヒット
[1-70件を表示]
(0.126秒)
別のキーワード
クラス
- FalseClass (36)
- File (12)
-
Net
:: FTP :: MLSxEntry (10) - Symbol (12)
検索結果
先頭5件
-
Symbol
# ==(other) -> true | false (18213.0) -
other が同じシンボルの時に真を返します。 そうでない場合は偽を返します。
...other が同じシンボルの時に真を返します。
そうでない場合は偽を返します。
@param other 比較対象のシンボルを指定します。
例:
:aaa == :aaa #=> true
:aaa == :xxx #=> false... -
File
# lstat -> File :: Stat (6113.0) -
ファイルの状態を含む File::Stat オブジェクトを生成して返します。 シンボリックリンクに関してリンクそのものの情報を返します。 lstat(2) を実装していないシステムでは、IO#statと同じです。
...File::Stat オブジェクトを生成して返します。
シンボリックリンクに関してリンクそのものの情報を返します。
lstat(2) を実装していないシステムでは、IO#statと同じです。
@raise Errno::EXXX 失敗した場合に発生します。
@raise IOE......ose されている場合に発生します。
//emlist[例][ruby]{
# testlink は testfile のシンボリックリンク
File.open("testlink") do |f|
p f.lstat == File.stat("testfile") # => false
p f.stat == File.stat("testfile") # => true
end
//}
@see IO#stat, File.stat, File.lstat... -
FalseClass
# &(other) -> false (3113.0) -
常に false を返します。
...alse を返します。
@param other 論理積を行なう式です。
& は再定義可能な演算子に分類されていますので、通常は false & other の形で使われます。
//emlist[例][ruby]{
p false & true #=> false
p false & false #=> false
p false & nil #=> fals......e
p false & (1 == 1) #=> false
p false & (1 + 1) #=> false
p false.&(true) #=> false
p false.&(false) #=> false
p false.&(nil) #=> false
p false.&(1 == 1) #=> false
p false.&(1 + 1) #=> false
//}... -
FalseClass
# ^(other) -> bool (3013.0) -
other が真なら true を, 偽なら false を返します。
...ら false を返します。
@param other 排他的論理和を行なう式です。
^ は再定義可能な演算子に分類されていますので、通常は false ^ other の形で使われます。
//emlist[例][ruby]{
p false ^ true #=> true
p false ^ false #=> false
p false ^ nil......#=> false
p false ^ (1 == 1) #=> true
p false ^ (1 + 1) #=> true
p false.^(true) #=> true
p false.^(false) #=> false
p false.^(nil) #=> false
p false.^(1 == 1) #=> true
p false.^(1 + 1) #=> true
//}... -
FalseClass
# |(other) -> bool (3013.0) -
other が真なら true を, 偽なら false を返します。
...alse を返します。
@param other 論理和を行なう式です。
| は再定義可能な演算子に分類されていますので、通常は false | other の形で使われます。
//emlist[例][ruby]{
p false | true #=> true
p false | false #=> false
p false | nil #=> false......p false | (1 == 1) #=> true
p false | (1 + 1) #=> true
p false.|(true) #=> true
p false.|(false) #=> false
p false.|(nil) #=> false
p false.|(1 == 1) #=> true
p false.|(1 + 1) #=> true
//}... -
Net
:: FTP :: MLSxEntry # file? -> bool (3007.0) -
エントリの種類がファイルであれば true を返します。
...エントリの種類がファイルであれば true を返します。
Net::FTP::MLSxEntry#type == "file" と同じ意味です。...