るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.033秒)
トップページ > クエリ:IO[x] > クエリ:name[x] > ライブラリ:rake[x] > バージョン:2.3.0[x] > クラス:Rake::FileList[x]

別のキーワード

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

キーワード

検索結果

Rake::FileList#excluded_from_list?(file_name) -> bool (367.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("te...

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

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

...attern 正規表現を指定します。

//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.eg...