class String

Portable path handling methods for the Test65 program.

Public Instance Methods

localize_path() click to toggle source

Convert a path string into local system form.

# File lib/test65/std_path.rb, line 11
def localize_path
  windows? ? self.gsub("/", "\\") : self
end
standardize_path() click to toggle source

Convert a path into standard form.

# File lib/test65/std_path.rb, line 6
def standardize_path
  self.gsub("\\", "/")
end