class String
This mixin convertes a file path to the os Path representation todo maybe replace this by a builtin ruby stuff such as “pathname”
Public Instance Methods
esc()
click to toggle source
adding quotes around the string. Main purpose is to escape blanks in file paths.
# File lib/wortsammler/class.proolib.rb, line 72 def esc "\"#{self}\"" end
to_osPath()
click to toggle source
convert the string to a path notation of the current operating system
# File lib/wortsammler/class.proolib.rb, line 61 def to_osPath gsub(File::SEPARATOR, File::ALT_SEPARATOR || File::SEPARATOR) end
to_rubyPath()
click to toggle source
convert the string to a path notation of ruby.
# File lib/wortsammler/class.proolib.rb, line 66 def to_rubyPath gsub(File::ALT_SEPARATOR || File::SEPARATOR, File::SEPARATOR) end