Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/lab42/core/file.rb
Class Method Summary collapse
Class Method Details
.expand_local_path(*args, &blk) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/lab42/core/file.rb', line 2 def *args, &blk raise ArgumentError, 'need a block to determine source location' unless blk values = args + Array( blk.() ) File.join( '..', values.compact), blk.source_location.first end |