Class: Subdir

Inherits:
Pathname show all
Defined in:
lib/wukong/extensions/pathname.rb

Class Method Summary collapse

Methods inherited from Pathname

#/

Class Method Details

.[](*vals) ⇒ Object



23
24
25
26
# File 'lib/wukong/extensions/pathname.rb', line 23

def self.[](*vals)
  dir = File.dirname(vals.shift)
  new(File.join(dir, *vals))
end