1657件ヒット
[1-100件を表示]
(0.035秒)
ライブラリ
- ビルトイン (633)
- csv (156)
- erb (12)
- fileutils (36)
- json (12)
- logger (12)
- mkmf (12)
-
net
/ http (24) - objspace (12)
- pathname (24)
- rake (312)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (24) -
rake
/ testtask (24) -
rubygems
/ source _ info _ cache (60) -
rubygems
/ specification (72) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - syslog (24)
-
test
/ unit (1)
クラス
- Binding (7)
- CSV (156)
- Dir (12)
- ERB (12)
- File (168)
-
Gem
:: SourceInfoCache (60) -
Gem
:: Specification (72) - IO (92)
- Logger (12)
-
Net
:: HTTPGenericRequest (24) - Pathname (24)
-
Rake
:: Application (12) -
Rake
:: FileList (240) -
Rake
:: FileTask (24) -
Rake
:: MakefileLoader (12) -
Rake
:: PackageTask (24) -
Rake
:: TestTask (12) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12)
モジュール
- FileTest (318)
- FileUtils (36)
- JSON (12)
- Kernel (36)
- ObjectSpace (12)
-
Rake
:: Cloneable (24) -
Rake
:: TaskManager (12) - Syslog (24)
-
Test
:: Unit (1)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (12)
- == (12)
- FileTest (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Ruby用語集 (12)
- TestTask (12)
- [] (30)
-
add
_ row (12) -
allocation
_ sourcefile (12) - atime (12)
- blockdev? (12)
-
body
_ stream (12) -
body
_ stream= (12) - chardev? (12)
- chown (12)
-
clear
_ exclude (12) - clone (24)
- close (12)
- closed? (12)
-
create
_ makefile (12) - ctime (36)
-
def
_ class (12) - delete (12)
- directory? (12)
- dump (12)
- dup (24)
- egrep (12)
- empty? (9)
-
excluded
_ from _ list? (12) - executable? (12)
-
executable
_ real? (12) - exist? (12)
- existing (12)
- existing! (12)
- exists? (9)
- ext (12)
- fdatasync (12)
- file? (12)
- filter (36)
- flush (12)
- fnmatch (12)
- formatter (12)
- getc (12)
- grpowned? (12)
- gsub (12)
- gsub! (12)
- identical? (12)
- import (12)
-
is
_ a? (12) -
kind
_ of? (12) -
latest
_ cache _ file (12) -
latest
_ system _ cache _ file (24) -
latest
_ user _ cache _ file (24) - lchmod (12)
- lchown (12)
- link (12)
- load (12)
- mask (12)
- mask= (12)
- mkdir (12)
- move (12)
- mtime (12)
- mv (12)
- needed? (12)
-
net
/ smtp (12) - new (36)
- open (72)
- owned? (12)
-
package
_ files (12) -
package
_ files= (12) - pathmap (12)
- pipe? (12)
- puts (12)
- rake (12)
- rakefile (12)
- read (24)
- readable? (12)
-
readable
_ real? (12) - readlines (12)
- readlink (12)
- resolve (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
rubygems
/ commands / check _ command (12) -
rubygems
/ commands / install _ command (12) - setgid? (12)
- setuid? (12)
-
setup
_ argv (1) - size (12)
- size? (12)
- socket? (12)
-
source
_ location (7) - sticky? (12)
- sub! (12)
- symlink? (12)
-
synthesize
_ file _ task (12) -
test
/ unit (1) -
test
_ file (12) -
test
_ file= (12) -
test
_ files (12) -
test
_ files= (24) -
test
_ suite _ file (12) -
test
_ suite _ file= (12) -
to
_ a (12) -
to
_ ary (12) -
to
_ s (12) - unlink (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - write (8)
- zero? (12)
- クラス/メソッドの定義 (12)
検索結果
先頭5件
- Kernel
. # test(cmd , file1 , file2) -> bool - Kernel
. # test(cmd , file) -> bool | Time | Integer | nil - Shell
# test(command , file1 , file2 = nil) -> bool | Time | Integer | nil - Shell
:: CommandProcessor # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil - Shell
:: Filter # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil
-
Kernel
. # test(cmd , file1 , file2) -> bool (18340.0) -
2ファイル間のファイルテストを行います。
...文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file1 テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@param file2 テストするファイルのパスを表す文字列か IO オブジェクトを指定......ァイル1とファイル2が同一のファイルである
//emlist[例][ruby]{
IO.write("testfile1", "test1")
IO.write("testfile2", "test2")
%w(= < > -).each do |e|
result = test(e, "testfile1", "testfile2")
puts "#{e}: #{result}"
end
//}
# => =: true
# => <: false
# => >: false
# => -: fals... -
Kernel
. # test(cmd , file) -> bool | Time | Integer | nil (18240.0) -
単体のファイルでファイルテストを行います。
...るいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 下表に特に明記していない......me
: ?A
ファイルの最終アクセス時刻を返す -> Time
: ?C
ファイルの inode 変更時刻を返す -> Time
//emlist[例][ruby]{
IO.write("testfile", "test")
test("r", "testfile") # => true
test("s", "testfile") # => 4
test("M", "testfile") # => 2018-03-31 07:38:40 +0900
//}... -
Shell
# test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (15345.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
....#test や FileTest のメソッドに処理を委譲します。
@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@param file1......文字列でファイルへのパスを指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # =>......true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true
@see Kernel.#test, FileTest... -
Shell
:: CommandProcessor # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (15345.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
....#test や FileTest のメソッドに処理を委譲します。
@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@param file1......文字列でファイルへのパスを指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # =>......true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true
@see Kernel.#test, FileTest... -
Shell
:: Filter # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (15345.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
....#test や FileTest のメソッドに処理を委譲します。
@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@param file1......文字列でファイルへのパスを指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # =>......true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true
@see Kernel.#test, FileTest... -
Rake
:: TestTask # test _ files=(list) (15207.0) -
明示的にテスト対象のファイルを指定します。
...示的にテスト対象のファイルを指定します。
Rake::TestTask#pattern=, Rake::TestTask#test_files= の
両方でテスト対象を指定した場合、両者は一つにまとめて使用されます。
@param list 配列か Rake::FileList のインスタンスを指定します。... -
Gem
:: Specification # test _ suite _ file=(file) (12325.0) -
この属性は非推奨です。 Gem::Specification#test_files= を使用してください。
...この属性は非推奨です。 Gem::Specification#test_files= を使用してください。
@param file テストスイートのファイルを指定します。... -
Gem
:: Specification # test _ file=(file) (12319.0) -
Gem::Specification#test_files= の単数バージョンです。
...Gem::Specification#test_files= の単数バージョンです。... -
Gem
:: Specification # test _ files=(files) (12301.0) -
ユニットテストのファイルのリストをセットします。
...ユニットテストのファイルのリストをセットします。
@param files ユニットテストのファイルのリストを指定します。... -
FileTest
. # file?(file) -> bool (12238.0) -
ファイルが通常ファイルである時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...am file ファイル名を表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。
例:
FileTest.file?('/bin/bash') # => true
FileTest.file?('/bin') # => false
FileTest.f......ile?('/no_such_file') # => false...