Class: String

Inherits:
Object show all
Defined in:
lib/test65/std_path.rb

Overview

Portable path handling methods for the Test65 program.

Instance Method Summary collapse

Instance Method Details

#localize_pathObject

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_pathObject

Convert a path into standard form.



6
7
8
# File 'lib/test65/std_path.rb', line 6

def standardize_path
  self.gsub("\\", "/")
end