Module: Hanami::Utils::FileList
- Defined in:
- lib/hanami/utils/file_list.rb
Overview
Ordered file list, consistent across operating systems
Class Method Summary collapse
-
.[](*args) ⇒ Object
Returns an ordered list of files, consistent across operating systems.
Class Method Details
.[](*args) ⇒ Object
Returns an ordered list of files, consistent across operating systems
It has the same signature of Dir.glob, it just guarantees to order the results before to return them.
37 38 39 |
# File 'lib/hanami/utils/file_list.rb', line 37 def self.[](*args) Dir.glob(::File.join(*args)).sort! end |