Sha256: 5810d576280b99c464d4d7365101957ccdca923f4782465efa43baf2d7b7c0af
Contents?: true
Size: 343 Bytes
Versions: 37
Compression:
Stored size: 343 Bytes
Contents
#!/usr/bin/env ruby # -*- encoding: utf-8 -*- # Copyright muflax <mail@muflax.com>, 2014 # License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html> class Dir class << self alias_method :"_[]", :"[]" # make glob sort by default def [] *args self.send(:"_[]", *(args.map{|a| File.expand_path(a)})).sort end end end
Version data entries
37 entries across 37 versions & 1 rubygems