Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/library/core_ext.rb
Constant Summary collapse
- RE_PATH_SEPERATOR =
Regexp.new('[' + Regexp.escape(File::Separator) + %q{\\\/} + ']')
Class Method Summary collapse
Class Method Details
.split_root(path) ⇒ Object
7 8 9 |
# File 'lib/library/core_ext.rb', line 7 def self.split_root(path) path.split(RE_PATH_SEPERATOR, 2) end |