1078件ヒット
[1-100件を表示]
(0.090秒)
別のキーワード
ライブラリ
- ビルトイン (322)
- csv (110)
- fileutils (33)
- json (11)
-
json
/ add / exception (11) -
minitest
/ unit (18) -
net
/ http (22) - objspace (11)
- optparse (77)
- pathname (11)
- rake (209)
-
rake
/ loaders / makefile (11) -
rake
/ packagetask (22) -
rake
/ testtask (33) -
rubygems
/ specification (88)
クラス
-
ARGF
. class (46) - Binding (6)
- CSV (110)
- Exception (40)
- File (88)
-
Gem
:: Specification (88) - IO (33)
-
MiniTest
:: Unit (3) -
MiniTest
:: Unit :: TestCase (1) - Module (5)
-
Net
:: HTTPGenericRequest (22) - OptionParser (77)
- Pathname (11)
-
Rake
:: Application (99) -
Rake
:: FileList (33) -
Rake
:: InvocationChain (22) -
Rake
:: MakefileLoader (11) -
Rake
:: PackageTask (22) -
Rake
:: TestTask (33) - String (11)
モジュール
- FileTest (60)
- FileUtils (33)
-
Gem
:: InstallUpdateOptions (11) - JSON (11)
- Kernel (55)
-
MiniTest
:: Assertions (14) - ObjectSpace (11)
- Rake (22)
-
Rake
:: TaskManager (22)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) -
PASSTHROUGH
_ EXCEPTIONS (1) -
add
_ loader (11) -
allocation
_ sourcefile (11) - append (22)
- application (11)
- application= (11)
-
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ match (1) -
assert
_ operator (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
backtrace
_ locations (11) -
body
_ stream (11) -
body
_ stream= (11) -
caller
_ locations (22) -
capture
_ io (1) - chown (11)
- chr (11)
-
const
_ source _ location (5) - ctime (11)
- delete (11)
- desc (11)
- dump (11)
- dup (11)
-
each
_ char (22) - egrep (11)
- empty? (8)
-
exception
_ details (1) - filter (33)
- getc (11)
- gets (24)
- grpowned? (11)
- gsub! (11)
-
has
_ test _ suite? (11) -
has
_ unit _ tests? (11) - identical? (11)
- import (11)
- init (11)
-
install
_ update _ defaults _ str (11) -
last
_ description (11) -
last
_ description= (11) - lchown (11)
- load (11)
- location (1)
- mkdir (11)
- move (11)
-
mu
_ pp (1) - mv (11)
- name (11)
- new (22)
-
on
_ head (11) -
on
_ tail (11) - open (66)
-
original
_ dir (11) - output= (1)
-
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)
- readlines (11)
- readlink (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) - skip (1)
- socket? (11)
-
source
_ location (6) -
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) -
top
_ level (11) -
top
_ level _ tasks (11) -
tty
_ output= (11) - unlink (11)
- yaml (11)
- zero? (8)
検索結果
先頭5件
-
IO
# puts(*obj) -> nil (27112.0) -
各 obj を self に出力し、それぞれの後に改行を出力します。 引数の扱いは Kernel.#puts と同じです。詳細はこちらを参照し てください。
...に改行を出力します。
引数の扱いは Kernel.#puts と同じです。詳細はこちらを参照し
てください。
@param obj 出力したいオブジェクトを指定します。Kernel.#puts と同じです。
@raise IOError 自身が書き込み用にオープンされていな......ければ発生します。
@raise Errno::EXXX 出力に失敗した場合に発生します。
$stdout.puts("this", "is", "a", "test", [1, [nil, 3]])
#=>
this
is
a
test
1
3
@see Kernel.#puts... -
IO
# dup -> IO (24312.0) -
レシーバと同じ IO を参照する新しい IO オブジェクトを返します。 参照しているファイル記述子は dup(2) されます。
...同じ IO を参照する新しい IO オブジェクトを返します。
参照しているファイル記述子は dup(2) されます。
clone の際に self は一旦 IO#flush されます。
フリーズした IO の clone は同様にフリーズされた IO を返しますが、
dup は内......しいフリーズされていない 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
# getc -> String | nil (21052.0) -
IO ポートから外部エンコーディングに従い 1 文字読み込んで返します。 EOF に到達した時には nil を返します。
...
IO ポートから外部エンコーディングに従い 1 文字読み込んで返します。
EOF に到達した時には nil を返します。
テキスト読み込みメソッドとして動作します。
IO#readchar との違いは EOF での振る舞いのみです。
@raise IOError......ープンされていなければ発生します。
例:
File.write("testfile", "test")
f = File.new("testfile")
p f.getc #=> "い"
p f.getc #=> "ろ"
p f.getc #=> "は"
f.read
f.getc #=> nil
@see IO#readchar... -
MiniTest
:: Assertions # exception _ details(exception , message) -> String (18400.0) -
与えられた例外の詳細を文字列として返します。
...与えられた例外の詳細を文字列として返します。
@param exception 例外を指定します。
@param message メッセージを指定します。... -
MiniTest
:: Assertions # capture _ io { . . . } -> Array (18201.0) -
与えられたブロックを評価中の標準出力と標準エラー出力を StringIO に 変更します。
...与えられたブロックを評価中の標準出力と標準エラー出力を StringIO に
変更します。
@return ブロック評価中に出力された文字列を標準出力を第一要素、標準エラー出力を第二要素とした
配列にして返します。... -
MiniTest
:: Unit :: TestCase :: PASSTHROUGH _ EXCEPTIONS -> [Class] (18200.0) -
システム関連の例外のリストです。内部で使用します。
システム関連の例外のリストです。内部で使用します。 -
Kernel
. # test(cmd , file) -> bool | Time | Integer | nil (18151.0) -
単体のファイルでファイルテストを行います。
...ます。
@param cmd 以下に示す文字リテラル、文字列、あるいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file テストするファイルのパスを表す文字列か IO オブジェ......プレーンファイルである
: ?d
ファイルはディレクトリである
: ?l
ファイルはシンボリックリンクである
: ?p
ファイルは名前つきパイプ(FIFO)である
: ?S
ファイルはソケットである
: ?b
ファイルはブロックスペシ......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
//}... -
Kernel
. # test(cmd , file1 , file2) -> bool (18151.0) -
2ファイル間のファイルテストを行います。
...ます。
@param cmd 以下に示す文字リテラル、文字列、あるいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file1 テストするファイルのパスを表す文字列か IO オブジ......ェクトを指定します。
@param file2 テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 真偽値を返します。
以下は cmd として指定できる文字リテラルとその意味です。
: ?=
ファイル1とファイ......ァイル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... -
Rake
:: TestTask # options=(option _ str) (15400.0) -
テストスイートに渡すパラメータをセットします。
...テストスイートに渡すパラメータをセットします。
@param option_str テストスイートに渡すパラメータを指定します。... -
Rake
:: Application # options -> OpenStruct (15218.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, ignore_system=false, job_stats=false, load_system=fal......se, 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
//}... -
Rake
:: TestTask # options -> String (15200.0) -
テストスイートに渡すパラメータを返します。
...テストスイートに渡すパラメータを返します。
コマンドラインで "TESTOPTS=options" が指定されると、この値を上書きします。
デフォルトは何も指定されていません。... -
Rake
:: TaskManager # last _ description=(description) (12448.0) -
最新の詳細説明をセットします。
...の記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
task.application.last_description # => "test2"
task.application.last_description = "test3"
task.application.last_description # => "test3"
end
desc "test2"
task :test_rake_app2 do |task|
end
//}...