るりまサーチ

最速Rubyリファレンスマニュアル検索!
165件ヒット [1-100件を表示] (0.037秒)
トップページ > クエリ:IO.new[x] > ライブラリ:rake[x] > 種類:インスタンスメソッド[x]

別のキーワード

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

キーワード

検索結果

<< 1 2 > >>

Rake::InvocationChain#append(task_name) -> Rake::InvocationChain (3109.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::Application#add_loader(ext, loader) (3015.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::InvocationChain#member?(task_name) -> bool (3009.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.member?("task_a") # => true
invocation_chain.member?("task_b") # => fal...

Rake::InvocationChain#to_s -> String (3009.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 = &#39;&#39;) -> 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")...

絞り込み条件を変える

Rake::FileList#resolve -> self (27.0)

追加リストと除外リストを評価します。

...ストを評価します。

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

IO
.write("test.rb", "test")
IO
.write("test.java", "test")
IO
.write("test.js", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("*.rb")
file_list.include("*.java")
file_list...

Rake::PackageTask#package_files=(file_list) (26.0)

パッケージに含むファイルリストを設定します。

...//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'

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

Rake
::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_files # => []
package_task.package_files = FileList.new("test1.rb", "test2...

Rake::FileList#egrep(pattern) {|filename, count, line| ... } (21.0)

与えられたパターンをファイルリストから grep のように検索します。

...を指定します。

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

IO
.write("sample1", "line1\nline2\nline3\n")
IO
.write("sample2", "line1\nline2\nline3\nline4\n")

task default: :test_rake_app
task :test_rake_app do

file_list = FileList.new('sample*')
file_list.egrep(/line/) # => 7...

Rake::FileList#excluded_from_list?(file_name) -> bool (21.0)

与えられたファイル名が除外される場合は、真を返します。 そうでない場合は偽を返します。

...e_name ファイル名を指定します。

//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")
file_list.exclude("test1.rb")
file...

Rake::FileList#existing -> Rake::FileList (21.0)

自身に含まれるファイルのうちファイルシステムに存在するファイルのみを 含む Rake::FileList を返します。

...するファイルのみを
含む 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")...

絞り込み条件を変える

<< 1 2 > >>