instance method
files_in
Ruby on Rails 6.0.6
Since v6.0.6 PrivateSignature
files_in(path)
No documentation comment.
Parameters
-
pathreq
Source
# File railties/lib/rails/paths.rb, line 225
def files_in(path)
Dir.chdir(path) do
files = Dir.glob(@glob)
files -= @exclude if @exclude
files.map! { |file| File.join(path, file) }
files.sort
end
end
Defined in railties/lib/rails/paths.rb line 225
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Paths::Path