Class: Vimrunner::Path

Inherits:
Object
  • Object
show all
Defined in:
lib/vimrunner/path.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Path

Returns a new instance of Path.



3
4
5
# File 'lib/vimrunner/path.rb', line 3

def initialize(path)
  @path = path
end

Instance Method Details

#to_sObject



7
8
9
# File 'lib/vimrunner/path.rb', line 7

def to_s
  @path.to_s.gsub(/([^A-Za-z0-9_\-.,:\/@\n])/, "\\\\\\1")
end