るりまサーチ

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

別のキーワード

  1. _builtin end
  2. ripper end_seen?
  3. _builtin exclude_end?
  4. _builtin end_with?
  5. zlib end

ライブラリ

クラス

検索結果

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

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

...app
task :test_rake_app do

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

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

end


# => "filename = sample1, count = 1, line = line1\n"
# => "filename = sampl...