Class: VimRecovery::Command::List
- Inherits:
-
VimRecovery::Command
- Object
- VimRecovery::Command
- VimRecovery::Command::List
- Defined in:
- lib/vim_recovery/command/list.rb
Instance Method Summary collapse
Methods inherited from VimRecovery::Command
#each_swapfile, #initialize, #patterns
Constructor Details
This class inherits a constructor from VimRecovery::Command
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/vim_recovery/command/list.rb', line 3 def run each_swapfile do |swapfile| puts "[%s%s]\t%s\t%s" % [ swapfile.modified? ? 'M' : ' ', swapfile.still_running? ? 'R' : ' ', swapfile.path, swapfile.original_filename ] end end |