種類
- インスタンスメソッド (17)
- 特異メソッド (1)
- 定数 (1)
クラス
- Module (1)
-
Rake
:: Application (4) -
Rake
:: FileCreationTask (1) -
Rake
:: InvocationChain (2) -
Rake
:: InvocationChain :: EmptyInvocationChain (1) -
Rake
:: RDocTask (4) -
Rake
:: Task (2)
モジュール
- Kernel (1)
-
Rake
:: Cloneable (1) -
Rake
:: TaskManager (2)
キーワード
-
DEFAULT
_ RAKEFILES (1) -
add
_ description (1) -
add
_ loader (1) - append (3)
-
arg
_ description (1) - desc (1)
- dup (1)
-
last
_ description (1) -
last
_ description= (1) -
load
_ rakefile (1) - needed? (1)
-
option
_ list (1) -
option
_ string (1) -
original
_ dir (1) -
rake
_ extension (1)
検索結果
先頭5件
-
Rake
:: TaskManager # last _ description=(description) (37207.0) -
最新の詳細説明をセットします。
...by]{
# Rakefile での記載例とする
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... -
Rake
:: Task # add _ description(description) (36907.0) -
自身に詳細説明を追加します。
自身に詳細説明を追加します。 -
Rake
:: InvocationChain :: EmptyInvocationChain # append(task _ name) -> Rake :: InvocationChain (36607.0) -
与えられた値を追加した Rake::InvocationChain を返します。
...与えられた値を追加した Rake::InvocationChain を返します。
@param task_name 追加する値を指定します。... -
Rake
:: Task # arg _ description (36607.0) -
-
Module
# rake _ extension(method) { . . . } -> () (27607.0) -
与えられたブロック内で既に存在するメソッドを再定義しようとした場合に 警告を表示します。この場合、ブロックは評価されません。
...た場合に
警告を表示します。この場合、ブロックは評価されません。
@param method ブロック内で再定義する予定のメソッド名を指定します。
例:
class String
rake_extension("xyz") do
def xyz
...
end
end
end... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (27607.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
...しい Rake::InvocationChain を返します。
@param task_name 追加するタスク名を指定します。
@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
tas......k :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}... -
Rake
:: InvocationChain . append(task _ name , chain) -> Rake :: InvocationChain (27607.0) -
与えられたタスク名を第二引数の Rake::InvocationChain に追加します。
...の Rake::InvocationChain に追加します。
@param task_name タスク名を指定します。
@param chain 既に存在する Rake::InvocationChain のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_a......pp do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
end
//}... -
Rake
:: RDocTask # options=(options) (27604.0) -
rdoc コマンドに渡すオプションのリストをセットします。
rdoc コマンドに渡すオプションのリストをセットします。
@param options rdoc コマンドに渡されるオプションを指定します。 -
Rake
:: Application # add _ loader(ext , loader) (27307.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
...e "rake/loaders/makefile"
# Rakefile での記載例とする
task default: :test
task :test
makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO.write("sample.mf", makefile)
Rake.application.add_loader("mf", Rake::MakefileLoader.new)
Rake.application.add_import("sample.mf")
Rake::......Task.task_defined?("a") # => false
Rake.application.load_imports
Rake::Task.task_defined?("a") # => true
//}... -
Rake
:: Application # load _ rakefile (27307.0) -
Rakefile を探してロードします。
...
Rakefile を探してロードします。... -
Rake
:: Application # original _ dir -> String (27307.0) -
rake コマンドを実行したディレクトリを返します。
...
rake コマンドを実行したディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.original_dir # => "/path/to/dir"
end
//}... -
Rake
:: Application :: DEFAULT _ RAKEFILES -> Array (27307.0) -
デフォルトで Rakefile として扱うファイル名の配列を返します。
...デフォルトで Rakefile として扱うファイル名の配列を返します。
'rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb' が指定されています。... -
Rake
:: Cloneable # dup -> object (27307.0) -
自身と同じクラスのオブジェクトを作成後、自身のインスタンス変数を 全て新たに作成したオブジェクトにコピーします。
...][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.freeze
dup = file_list.dup
clone = file_list.clone
dup.exclude("a.c") # => ["b.c"]
clone.exclude("a.c") # => can't modify frozen Rake::FileList... -
Rake
:: FileCreationTask # needed? -> bool (27307.0) -
ファイルが存在しない場合、真を返します。 そうでない場合は、偽を返します。
ファイルが存在しない場合、真を返します。
そうでない場合は、偽を返します。
@see [[FileTask#needed?]] -
Rake
:: RDocTask # option _ list -> Array (27304.0) -
rdoc コマンドに渡すオプションのリストを返します。
rdoc コマンドに渡すオプションのリストを返します。 -
Rake
:: RDocTask # option _ string -> String (27304.0) -
rdoc コマンドに渡すオプションを文字列として返します。
rdoc コマンドに渡すオプションを文字列として返します。 -
Rake
:: RDocTask # options -> Array (27304.0) -
rdoc コマンドに渡すオプションのリストを返します。
rdoc コマンドに渡すオプションのリストを返します。
指定できるオプションは -o, --main, --title, -T 以外です。 -
Kernel
# desc(description) -> String (18907.0) -
直後の Rake タスクの説明を登録します。
...直後の Rake タスクの説明を登録します。
@param description 直後のタスクの説明を指定します。
例:
desc "Run the Unit Tests"
task :test => [:build] do
runtests
end... -
Rake
:: TaskManager # last _ description -> String (18607.0) -
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
...
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end
desc "test2"
task :test_rake_a...