Class: Object

Inherits:
BasicObject
Defined in:
lib/uzuuzu-core/ext/object.rb

Instance Method Summary collapse

Instance Method Details

#__DIR__(*args) ⇒ Object



3
4
5
6
7
# File 'lib/uzuuzu-core/ext/object.rb', line 3

def __DIR__(*args)
  filename = caller[0][/^(.*):/, 1]
  dir = File.expand_path(File.dirname(filename))
  ::File.expand_path(::File.join(dir, *args.map{|a| a.to_s}))
end