Class: String
Overview
Portable path handling methods for the Test65 program.
Instance Method Summary collapse
-
#localize_path ⇒ Object
Convert a path string into local system form.
-
#standardize_path ⇒ Object
Convert a path into standard form.
Instance Method Details
#localize_path ⇒ Object
Convert a path string into local system form.
11 12 13 |
# File 'lib/test65/std_path.rb', line 11 def localize_path windows? ? self.gsub("/", "\\") : self end |
#standardize_path ⇒ Object
Convert a path into standard form.
6 7 8 |
# File 'lib/test65/std_path.rb', line 6 def standardize_path self.gsub("\\", "/") end |