Class: Vimrunner::Command
- Inherits:
-
Object
- Object
- Vimrunner::Command
- Defined in:
- lib/vimrunner/command.rb
Instance Method Summary collapse
-
#initialize(command) ⇒ Command
constructor
A new instance of Command.
- #to_s ⇒ Object
Constructor Details
#initialize(command) ⇒ Command
Returns a new instance of Command.
3 4 5 |
# File 'lib/vimrunner/command.rb', line 3 def initialize(command) @command = command end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/vimrunner/command.rb', line 7 def to_s @command.to_s.gsub("'", "''") end |