Method: Gitgo::Index::IdxFile.rm
- Defined in:
- lib/gitgo/index/idx_file.rb
.rm(path, *ints) ⇒ Object
Opens the file and removes the integers.
48 49 50 51 52 53 |
# File 'lib/gitgo/index/idx_file.rb', line 48 def rm(path, *ints) return unless File.exists?(path) current = read(path) write(path, (current-ints)) end |