るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
7件ヒット [1-7件を表示] (0.069秒)
トップページ > バージョン:2.3.0[x] > クエリ:IO[x] > クエリ:string[x] > クエリ:rakefile[x]

別のキーワード

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

ライブラリ

モジュール

キーワード

検索結果

Rake::Application#rakefile -> String (63709.0)

実際に使用されている Rakefile の名前を返します。

実際に使用されている Rakefile の名前を返します。

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

task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//}

Rake::TaskManager#last_description -> String (9673.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_app2 do |task|
end
//}

Rake::Application#name -> String (9322.0)

アプリケーションの名前を返します。通常は 'rake' という名前を返します。

アプリケーションの名前を返します。通常は 'rake' という名前を返します。

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

task default: :test_rake_app
task :test_rake_app do
Rake.application.name # => "rake"
end
//}

Rake::Application#original_dir -> String (9322.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::InvocationChain#to_s -> String (9322.0)

トップレベルのタスクから自身までの依存関係を文字列として返します。

トップレベルのタスクから自身までの依存関係を文字列として返します。

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

task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.to_s # => "TOP => task_a"
end
//}

絞り込み条件を変える

Rake::FileList#ext(newext = '') -> Rake::FileList (121.0)

各要素に String#ext を適用した新しい Rake::FileList を返します。

各要素に String#ext を適用した新しい Rake::FileList を返します。

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

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.ext(".erb") # => ["test1.e...

Rake::FileList#gsub!(pattern, replace) -> self (103.0)

自身に含まれるファイルリストのそれぞれのエントリに対して String#gsub を実行します。 自身を破壊的に変更します。

自身に含まれるファイルリストのそれぞれのエントリに対して String#gsub を実行します。
自身を破壊的に変更します。

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

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.gsub!(/\.r...