Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/gui/base.rb
Class Method Summary collapse
Class Method Details
.get_root_dir(this_path) ⇒ Object
726 727 728 729 730 731 732 733 |
# File 'lib/gui/base.rb', line 726 def self.get_root_dir this_path this_path = File. this_path if OS.doze? this_path[0..2] else this_path.split('/')[0] end end |
.strip_drive_windows(this_complete_path) ⇒ Object
735 736 737 738 739 740 741 |
# File 'lib/gui/base.rb', line 735 def self.strip_drive_windows this_complete_path if OS.doze? this_complete_path[2..-1] else this_complete_path end end |