Class: String

Inherits:
Object show all
Defined in:
lib/transparent_git/ext.rb,
lib/transparent_git/repo.rb

Instance Method Summary collapse

Instance Method Details

#stripped_charsObject



9
10
11
# File 'lib/transparent_git/repo.rb', line 9

def stripped_chars
  self.encode("UTF-8", :invalid => :replace, :undef => :replace)
end

#to_file_urlObject



33
34
35
36
# File 'lib/transparent_git/ext.rb', line 33

def to_file_url
  res = gsub("\\","/").gsub("c:","/c")
  "file://#{res}"
end