Class: Vimrunner::Path
- Inherits:
-
Object
- Object
- Vimrunner::Path
- Defined in:
- lib/vimrunner/path.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ Path
constructor
A new instance of Path.
- #to_s ⇒ Object
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_s ⇒ Object
7 8 9 |
# File 'lib/vimrunner/path.rb', line 7 def to_s @path.to_s.gsub(/([^A-Za-z0-9_\-.,:\/@\n])/, "\\\\\\1") end |