種類
- インスタンスメソッド (14)
- 特異メソッド (2)
- モジュール関数 (1)
ライブラリ
- ビルトイン (3)
-
net
/ http (1) - pathname (3)
- shell (2)
-
shell
/ command-processor (2) -
shell
/ filter (2) -
shell
/ process-controller (3) - strscan (1)
クラス
- Dir (1)
- File (1)
-
Net
:: HTTPGenericRequest (1) - Pathname (3)
- Shell (2)
-
Shell
:: CommandProcessor (2) -
Shell
:: Filter (2) -
Shell
:: ProcessController (3) - StringScanner (1)
モジュール
- FileTest (1)
キーワード
-
active
_ jobs _ exist? (1) -
body
_ exist? (1) - delete (1)
- exists? (3)
-
jobs
_ exist? (1) - unlink (1)
-
waiting
_ jobs _ exist? (1)
検索結果
先頭5件
-
File
. exist?(path) -> bool (63601.0) -
FileTest.#exist? と同じです。
FileTest.#exist? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。 -
FileTest
. # exist?(file) -> bool (63601.0) -
ファイルが存在する時に真を返します。そうでない場合、あるいはシステムコールに失敗した場合などには false を返します。
ファイルが存在する時に真を返します。そうでない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。
例:
FileTest.exist?('/etc/passwd') # => true
FileTest.exist?('/etc') # => true
FileTest.exist?('/etc/no_such_file') # => false... -
Shell
# exist?(file) -> bool (63601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#exist? FileTest.#exists? -
Shell
:: CommandProcessor # exist?(file) -> bool (63601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#exist? FileTest.#exists? -
Shell
:: Filter # exist?(file) -> bool (63601.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#exist? FileTest.#exists? -
Pathname
# exist? -> bool (54604.0) -
FileTest.exist?(self.to_s) と同じです。
FileTest.exist?(self.to_s) と同じです。
@see FileTest.#exist? -
Dir
. exist?(file _ name) -> bool (54601.0) -
file_name で与えられたディレクトリが存在する場合に真を返します。 そうでない場合は、偽を返します。
file_name で与えられたディレクトリが存在する場合に真を返します。
そうでない場合は、偽を返します。
@param file_name 存在を確認したいディレクトリ名。
//emlist[例][ruby]{
Dir.exist?(".") # => true
File.directory?(".") # => true
//}
@see File.directory? -
StringScanner
# exist?(regexp) -> Integer | nil (54601.0) -
スキャンポインタの位置から,次にマッチする文字列の末尾までの長さを返します。
スキャンポインタの位置から,次にマッチする文字列の末尾までの長さを返します。
マッチに失敗したら nil を返します。
このメソッドはマッチが成功してもスキャンポインタを進めません。
@param regexp マッチに用いる正規表現を指定します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.exist?(/s/) # => 3
s.exist?(//) # => 0
s.scan(/\w+/) # => "test"
s.exist?(/s/) # => 2
s.exis... -
Shell
:: ProcessController # active _ jobs _ exist? -> bool (36604.0) -
実行中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。
実行中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。 -
Shell
:: ProcessController # jobs _ exist? -> bool (36604.0) -
実行中か待機中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。
実行中か待機中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。 -
Shell
:: ProcessController # waiting _ jobs _ exist? -> bool (36604.0) -
待機中のジョブが存在する場合は真を返します。 そうでない場合は偽を返します。
待機中のジョブが存在する場合は真を返します。
そうでない場合は偽を返します。 -
Net
:: HTTPGenericRequest # body _ exist? -> bool (18604.0) -
このメソッドは obsolete です。
このメソッドは obsolete です。
Net::HTTPGenericRequest#response_body_permitted?
の別名です。 -
Pathname
# delete -> Integer (18337.0) -
self が指すディレクトリあるいはファイルを削除します。
self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//} -
Pathname
# unlink -> Integer (18337.0) -
self が指すディレクトリあるいはファイルを削除します。
self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//} -
Shell
# exists?(file) -> bool (18301.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#exist? FileTest.#exists? -
Shell
:: CommandProcessor # exists?(file) -> bool (18301.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#exist? FileTest.#exists? -
Shell
:: Filter # exists?(file) -> bool (18301.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#exist? FileTest.#exists?