Module: Hanami::Utils::FileList

Defined in:
gems/gems/hanami-utils-1.3.3/lib/hanami/utils/file_list.rb,
gems/gems/hanami-utils-1.3.8/lib/hanami/utils/file_list.rb

Overview

Ordered file list, consistent across operating systems

Since:

  • 0.9.0

Class Method Summary collapse

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.

See Also:

Since:

  • 0.9.0

def self.[](*args)
  Dir.glob(*args).sort!
end