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.(File.dirname(filename)) ::File.(::File.join(dir, *args.map{|a| a.to_s})) end |