別のキーワード
ライブラリ
- ビルトイン (671)
- csv (110)
- fileutils (33)
- json (11)
-
json
/ add / exception (11) - logger (11)
-
minitest
/ unit (36) -
net
/ http (22) - objspace (11)
- optparse (77)
- pathname (11)
- rake (319)
-
rake
/ loaders / makefile (11) -
rake
/ packagetask (22) -
rake
/ testtask (33) -
rubygems
/ specification (88)
クラス
-
ARGF
. class (77) - Binding (6)
- CSV (110)
- Exception (40)
- File (154)
-
Gem
:: Specification (88) - IO (95)
- Logger (11)
-
MiniTest
:: Unit (7) -
MiniTest
:: Unit :: TestCase (1) - Module (5)
-
Net
:: HTTPGenericRequest (22) - OptionParser (77)
- Pathname (11)
-
Rake
:: Application (99) -
Rake
:: FileList (88) -
Rake
:: FileTask (11) -
Rake
:: InvocationChain (55) -
Rake
:: MakefileLoader (11) -
Rake
:: PackageTask (22) -
Rake
:: TestTask (33) - String (11)
- Thread (22)
モジュール
- FileTest (228)
- FileUtils (33)
-
Gem
:: InstallUpdateOptions (11) - JSON (11)
- Kernel (55)
-
MiniTest
:: Assertions (26) - ObjectSpace (11)
- Rake (22)
-
Rake
:: TaskManager (33)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - Assertion (1)
- Assertions (1)
-
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) -
PASSTHROUGH
_ EXCEPTIONS (1) - VERSION (1)
-
_ assertions (1) -
_ assertions= (1) -
add
_ loader (11) -
allocation
_ sourcefile (11) - append (22)
- application (11)
- application= (11)
- assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ raises (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) -
assertion
_ count (1) -
assertion
_ count= (1) - atime (11)
-
backtrace
_ locations (33) - binmode (11)
- blockdev? (11)
-
body
_ stream (11) -
body
_ stream= (11) -
caller
_ locations (22) -
capture
_ io (1) - chardev? (11)
- chown (11)
- chr (11)
- clone (11)
- close (22)
- closed? (11)
-
const
_ source _ location (5) - ctime (33)
- delete (11)
- desc (11)
- directory? (11)
- dump (11)
- dup (11)
-
each
_ char (22) - egrep (11)
- empty? (8)
-
exception
_ details (1) -
excluded
_ from _ list? (11) -
executable
_ real? (11) - exist? (11)
- existing (11)
- existing! (11)
- ext (11)
- fdatasync (11)
- file? (11)
- filter (33)
- flunk (1)
- flush (11)
- getc (11)
- gets (33)
- grpowned? (11)
- gsub! (11)
-
has
_ test _ suite? (11) -
has
_ unit _ tests? (11) - identical? (11)
- import (11)
- init (11)
-
install
_ update _ defaults _ str (11) -
internal
_ encoding (11) -
last
_ description (11) -
last
_ description= (11) - lchmod (11)
- lchown (11)
- link (11)
- load (11)
- location (1)
- member? (11)
- mkdir (11)
- move (11)
- mtime (11)
-
mu
_ pp (1) - mv (11)
- name (11)
- needed? (11)
- new (33)
-
on
_ head (11) -
on
_ tail (11) - open (66)
-
original
_ dir (11) - output= (1)
- owned? (11)
-
package
_ files (11) -
package
_ files= (11) - parse (22)
- parse! (11)
- pass (1)
- pipe? (11)
-
program
_ name= (11) - puke (1)
- puts (11)
- rakefile (11)
- read (11)
- readable? (11)
- readlines (11)
- readlink (11)
- resolve (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby
_ opts= (11) -
set
_ backtrace (11) - setgid? (11)
- setuid? (11)
- size (11)
- size? (11)
- skip (1)
- socket? (11)
-
source
_ location (6) - status (1)
- sticky? (11)
- symlink? (11)
-
synthesize
_ file _ task (11) -
test
/ unit (11) -
test
_ file (11) -
test
_ file= (11) -
test
_ files (11) -
test
_ files= (11) -
test
_ suite _ file (11) -
test
_ suite _ file= (11) -
to
_ a (11) -
to
_ json (11) -
to
_ s (11) -
top
_ level (11) -
top
_ level _ tasks (11) -
tty
_ output= (11) - unlink (11)
- writable? (11)
- write (7)
- yaml (11)
- zero? (11)
検索結果
先頭5件
-
Kernel
. # test(cmd , file1 , file2) -> bool (18150.0) -
2ファイル間のファイルテストを行います。
...とみなします。
@param file1 テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@param file2 テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 真偽値を返します。
以下は cmd......ファイル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
# =>... -
Kernel
. # test(cmd , file) -> bool | Time | Integer | nil (18145.0) -
単体のファイルでファイルテストを行います。
...列の場合はその先頭の文字だけをコマンドとみなします。
@param file テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 下表に特に明記していないものは、真偽値を返します。
以下は cmd として......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
//}... -
MiniTest
:: Assertions # exception _ details(exception , message) -> String (12200.0) -
与えられた例外の詳細を文字列として返します。
...与えられた例外の詳細を文字列として返します。
@param exception 例外を指定します。
@param message メッセージを指定します。... -
MiniTest
:: Assertions # capture _ io { . . . } -> Array (12101.0) -
与えられたブロックを評価中の標準出力と標準エラー出力を StringIO に 変更します。
...与えられたブロックを評価中の標準出力と標準エラー出力を StringIO に
変更します。
@return ブロック評価中に出力された文字列を標準出力を第一要素、標準エラー出力を第二要素とした
配列にして返します。... -
MiniTest
:: Assertions # _ assertions -> Fixnum (12100.0) -
アサーション数を返します。
アサーション数を返します。 -
MiniTest
:: Assertions # _ assertions=(count) (12100.0) -
アサーション数をセットします。
アサーション数をセットします。
@param count 件数を指定します。 -
MiniTest
:: Unit :: TestCase :: PASSTHROUGH _ EXCEPTIONS -> [Class] (12100.0) -
システム関連の例外のリストです。内部で使用します。
システム関連の例外のリストです。内部で使用します。 -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (9230.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...ース情報を返します。Exception#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check......get_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in `get_exception'", "test.rb:15:in `<main>'"]
//}
@see Exception#backtrace... -
IO
# clone -> IO (9212.0) -
レシーバと同じ IO を参照する新しい IO オブジェクトを返します。 参照しているファイル記述子は dup(2) されます。
...シーバと同じ IO を参照する新しい IO オブジェクトを返します。
参照しているファイル記述子は dup(2) されます。
clone の際に self は一旦 IO#flush されます。
フリーズした IO の clone は同様にフリーズされた IO を返しますが、......しいフリーズされていない IO を返します。
@raise IOError 既に close されていた場合に発生します。
//emlist[例][ruby]{
clone_io = nil
IO.write("testfile", "test")
File.open("testfile") do |io|
clone_io = io.clone
end
clone_io.read # => "test"
clone_io.close
//}... -
IO
# dup -> IO (9212.0) -
レシーバと同じ IO を参照する新しい IO オブジェクトを返します。 参照しているファイル記述子は dup(2) されます。
...シーバと同じ IO を参照する新しい IO オブジェクトを返します。
参照しているファイル記述子は dup(2) されます。
clone の際に self は一旦 IO#flush されます。
フリーズした IO の clone は同様にフリーズされた IO を返しますが、......しいフリーズされていない IO を返します。
@raise IOError 既に close されていた場合に発生します。
//emlist[例][ruby]{
clone_io = nil
IO.write("testfile", "test")
File.open("testfile") do |io|
clone_io = io.clone
end
clone_io.read # => "test"
clone_io.close
//}... -
MiniTest
:: Unit # location(exception) -> String (9200.0) -
与えられた例外の発生した場所を返します。
与えられた例外の発生した場所を返します。 -
Rake
:: TestTask # options=(option _ str) (9200.0) -
テストスイートに渡すパラメータをセットします。
...テストスイートに渡すパラメータをセットします。
@param option_str テストスイートに渡すパラメータを指定します。... -
Rake
:: Application # options -> OpenStruct (9118.0) -
コマンドラインで与えられたアプリケーションのオプションを返します。
...ーションのオプションを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.options # => #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, i......em=false, job_stats=false, load_system=false, nosearch=false, rakelib=["rakelib"], show_all_tasks=false, show_prereqs=false, show_task_pattern=nil, show_tasks=nil, silent=false, suppress_backtrace_pattern=nil, thread_pool_size=8, trace=false, trace_output=#<IO:<STDERR>>, trace_rules=false>
end
//}... -
Gem
:: Specification # test _ file -> String (9117.0) -
Gem::Specification#test_files の単数バージョンです。
...Gem::Specification#test_files の単数バージョンです。... -
Gem
:: Specification # test _ file=(file) (9117.0) -
Gem::Specification#test_files= の単数バージョンです。
...Gem::Specification#test_files= の単数バージョンです。...