るりまサーチ

最速Rubyリファレンスマニュアル検索!
77件ヒット [1-77件を表示] (0.034秒)
トップページ > クエリ:io[x] > クエリ:ask[x] > クエリ:application[x]

別のキーワード

  1. io popen
  2. io pipe
  3. io readlines
  4. io each_line
  5. io each

ライブラリ

クラス

モジュール

検索結果

Rake::Task#application -> Rake::Application (27418.0)

自身を所有している Rake::Application のインスタンスを返します。

...自身を所有している Rake::Application のインスタンスを返します。...

Rake::Task#application=(app) (15217.0)

自身を所有している Rake::Application のインスタンスをセットします。

...自身を所有している Rake::Application のインスタンスをセットします。

@param app 自身を所有しているアプリケーションを指定します。...

Rake::Application#top_level_tasks -> Array (12106.0)

コマンドラインで指定されたタスクのリストを返します。

...コマンドラインで指定されたタスクのリストを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
Rake.application.top_level_tasks # => ["default"]
end
//}...

Rake::TaskManager#synthesize_file_task(task_name) -> Rake::FileTask | nil (9318.0)

与えられたタスク名をもとにファイルタスクを合成します。

...与えられたタスク名をもとにファイルタスクを合成します。

@param task_name タスク名を指定します。

@return 与えられたタスク名と同名のファイルが存在する場合は、ファイルタスクを作成して返します。
そうでない場...
...by]{
# Rakefile での記載例とする

task default: :test_rake_app

task :test_rake_app do |task|
task.application.synthesize_file_task("sample_file") # => nil
IO
.write("sample_file", "")
task.application.synthesize_file_task("sample_file") # => <Rake::FileTask sample_file => []>
end
//}...

Rake::TaskManager#last_description=(description) (9218.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
//}...

絞り込み条件を変える

Rake::TaskManager#last_description -> String (6106.0)

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_app2 do |task|
end
//}...

Rake::FileTask#needed? -> bool (3012.0)

このタスクが必要である場合は真を返します。 そうでない場合は偽を返します。

...るファイルが古い場合に真を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: "test.txt"
file "test.txt" do |task|
Rake.application.options.build_all = false
task.needed? # => true
IO
.write("test.txt", "test")
task.needed? # => false
end
//}...