るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file atime
  4. file size
  5. digest file

ライブラリ

クラス

検索結果

Rake::FileList#ext(newext = '') -> Rake::FileList (21347.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"]
end
//}

@see String#ext...