るりまサーチ

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix det_e
  4. matrix rank_e
  5. open3 capture2e

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

FileList (44016.0)

Alias of Rake::FileList

...Alias of Rake::FileList...

Rake::FileList (24018.0)

このクラスは Array と基本的には同じです。

...れています。

Rake::FileList は与えられた glob のパターンを使ってすぐにファイルを検索せずに、
後で評価するためにそれを保存しておきます。

このことは、多くのファイルにマッチする多くの Rake::FileList を使用できること...
...を意味します。
実際に使用されると Rake::FileList が保持するパターンが評価されます。...

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

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

...#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.erb", "test2.erb", "test3.erb"]
e
nd
//}

@see String#ext...

Rake::FileList#existing -> Rake::FileList (9223.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 # => ["test1.r...
...b", "test2.rb"]
e
nd
//}...

Rake::TestTask#test_files=(list) (9206.0)

明示的にテスト対象のファイルを指定します。

...示的にテスト対象のファイルを指定します。

Rake::TestTask#pattern=, Rake::TestTask#test_files= の
両方でテスト対象を指定した場合、両者は一つにまとめて使用されます。

@param list 配列か Rake::FileList のインスタンスを指定します。...

絞り込み条件を変える

Rake::FileList#exclude(*patterns) {|entry| ... } -> self (9124.0)

自身から取り除くべきファイル名のパターンを自身の除外リストに登録します。

...ません。

例:
FileList
['a.c', 'b.c'].exclude("a.c") # => ['b.c']
FileList
['a.c', 'b.c'].exclude(/^a/) # => ['b.c']

# If "a.c" is a file, then ...
FileList
['a.c', 'b.c'].exclude("a.*") # => ['b.c']

# If "a.c" is not a file, then ...
FileList
['a.c', 'b.c'].exclude("a.*") # => ['a.c...

Rake::FileList.new(*patterns) {|self| ... } (9112.0)

与えられたパターンをもとにして自身を初期化します。

...いる場合は、自身をブロックパラメータとしてブロックを評価します。

@param patterns パターンを指定します。

例:
file_list = FileList.new('lib/**/*.rb', 'test/test*.rb')

pkg_files = FileList.new('lib/**/*') do |fl|
fl.exclude(/\bCVS\b/)
e
nd...

Rake::FileList#clear_exclude -> self (9106.0)

登録されている除外リストをクリアします。

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

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test.rb", "test.bak")
file_list.exclude("test.rb")
# DEFAULT_IGNORE_PATTERNS と "test.rb" の双方の除外がクリアされる
file_list.clear_exclude
file...
..._list # => ["test.rb", "test.bak"]
e
nd
//}...

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

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

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

ブロックが与えられた場合は、マッチした行の情報 (ファイル名、行番号、マッチした行) が
ブロックに渡されてブロックが評価されます。ブロックが...
...tern 正規表現を指定します。

//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.egre...
...(/line/) # => 7

file_list.egrep(/.*/) do |filename, count, line|
"filename = #{filename}, count = #{count}, line = #{line}"
e
nd
e
nd

# => "filename = sample1, count = 1, line = line1\n"
# => "filename = sample1, count = 2, line = line2\n"
# => "filename = sample1, count = 3, line = line3\n"...
<< 1 2 3 ... > >>