Ruby 4.1 リファレンスマニュアル

instance method Rake::FileList#pathmap

pathmap(spec = nil) -> Rake::FileListRuby 1.9.3 から[permalink][rdoc][edit]

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

# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
  file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
  p file_list.pathmap("%n") # => ["test1", "test2", "test3"]
end

[SEE_ALSO] String#pathmap