るりまサーチ

最速Rubyリファレンスマニュアル検索!
336件ヒット [1-100件を表示] (0.092秒)

別のキーワード

  1. rake to_s
  2. rake new
  3. rake []
  4. rake application
  5. rake clear

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

FileUtils#ruby(*args) {|result, status| ... } (29130.0)

与えられた引数で Ruby インタプリタを実行します。

...与えられた引数で Ruby インタプリタを実行します。

@param args Ruby インタプリタに与える引数を指定します。

例:
ruby
%{-pe '$_.upcase!' <README}

@see Kernel.#sh...

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

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

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

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

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

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

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

...mlist[][ruby]{
# 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 => []>...

Rake::FileList#existing -> Rake::FileList (14248.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")
file
_list.existing #...

Rake::FileList#ext(newext = &#39;&#39;) -> Rake::FileList (14248.0)

各要素に String#ext を適用した新しい 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")
file
_list.ext(".er...

絞り込み条件を変える

Rake::FileList#pathmap(spec = nil) -> Rake::FileList (14248.0)

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

...に String#pathmap を適用した新しい Rake::FileList を返します。

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

task default: :test_rake_app
task :test_rake_app do
file
_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file
_list.pathmap("%n") # => ["test1", "test2", "...

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

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

...す。

@param file_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_list.excluded_from_list?("test1.rb") # => true
file
_list.excluded_from_list?("test2.rb") # => false
end
//}...

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

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

...[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

file
_list.egrep(/.*/) do |file...
..."filename = #{filename}, count = #{count}, line = #{line}"
end
end

# => "filename = sample1, count = 1, line = line1\n"
# => "filename = sample1, count = 2, line = line2\n"
# => "filename = sample1, count = 3, line = line3\n"
# => "filename = sample2, count = 1, line = line1\n"
# => "filename...
...= sample2, count = 2, line = line2\n"
# => "filename = sample2, count = 3, line = line3\n"
# => "filename = sample2, count = 4, line = line4\n"
//}...

Rake::FileTask#timestamp -> Time | Rake::LateTime (14126.0)

ファイルタスクのタイムスタンプを返します。

...ファイルタスクのタイムスタンプを返します。

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

task default: "test.txt"
file
"test.txt" do |task|
Rake
.application.options.build_all = false
task.timestamp # => #<Rake::LateTime:0x2ba58f0>
end
//}...
<< 1 2 3 ... > >>