Sha256: b4f6d121edbbfd8ed3f5d25bb6b8e60af06d86d0f899ef78a8160b26436bf9ce
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true module Hanami module Utils # Ordered file list, consistent across operating systems # # @since 0.9.0 module FileList # Returns an ordered list of files, consistent across operating systems # # It has the same signature of <tt>Dir.glob</tt>, it just guarantees to # order the results before to return them. # # @since 0.9.0 # # @see https://ruby-doc.org/core/Dir.html#method-c-glob def self.[](*args) Dir.glob(*args).sort! end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanami-utils-1.3.8 | lib/hanami/utils/file_list.rb |
hanami-utils-1.3.7 | lib/hanami/utils/file_list.rb |