2件ヒット
[1-2件を表示]
(0.085秒)
検索結果
先頭2件
-
Rake
:: FileList # egrep(pattern) {|filename , count , line| . . . } (18793.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... -
Rake
:: FileList # pathmap(spec = nil) -> Rake :: FileList (18649.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",...