Sha256: b232c07debbf16b97b7101de0ec12ff4c7eeeddfac9ede4dd1d39a24f45d05c2
Contents?: true
Size: 349 Bytes
Versions: 3
Compression:
Stored size: 349 Bytes
Contents
#!/usr/bin/env ruby # -*- encoding: utf-8 -*- # Copyright Steffie Dorn <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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
muflax-0.5.5 | lib/muflax/dir.rb |
muflax-0.5.3 | lib/muflax/dir.rb |
muflax-0.5.2 | lib/muflax/dir.rb |