Class: Dir

Inherits:
Object show all
Defined in:
lib/muflax/dir.rb

Overview

Copyright muflax <[email protected]>, 2014 License: GNU GPL 3 <www.gnu.org/copyleft/gpl.html>

Class Method Summary collapse

Class Method Details

.[](*args) ⇒ Object

make glob sort by default



11
12
13
14
# File 'lib/muflax/dir.rb', line 11

def [] *args

  self.send(:"_[]", *(args.map{|a| File.expand_path(a)})).sort
end

._[]Object



8
# File 'lib/muflax/dir.rb', line 8

alias_method :"_[]", :"[]"