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
685 686 687 688 689 690 691 692 |
# File 'lib/gui/base.rb', line 685 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
694 695 696 697 698 699 700 |
# File 'lib/gui/base.rb', line 694 def self.strip_drive_windows this_complete_path if OS.doze? this_complete_path[2..-1] else this_complete_path end end |