Sha256: fe93d0556b7e2a2898b134cba78615c069c37995acc4cf09a1af63b88b0f9de8
Contents?: true
Size: 356 Bytes
Versions: 3
Compression:
Stored size: 356 Bytes
Contents
#!/usr/bin/env ruby # -*- encoding: utf-8 -*- # Copyright Freya Dorn <freya.siv.dorn@gmail.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
muflax-0.7.0 | lib/muflax/dir.rb |
muflax-0.6.1 | lib/muflax/dir.rb |
muflax-0.6.0 | lib/muflax/dir.rb |