Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/ubsafe/extensions/ubsafe_file_extensions.rb
Class Method Summary collapse
-
.join(*args) ⇒ Object
Join a list of paths as strings and/or arrays of strings.
-
.join_from_here(*args) ⇒ Object
Perform a join relative to the current file.
Class Method Details
.join(*args) ⇒ Object
Join a list of paths as strings and/or arrays of strings
Join now works like it should! It calls .to_s on each of the args pass in. It handles nested Arrays, etc…
17 18 19 20 |
# File 'lib/ubsafe/extensions/ubsafe_file_extensions.rb', line 17 def join(*args) fs = [args].flatten _ubsafe_original_join(fs.collect{|c| c.to_s}) end |