lib/relaton/index/file_io.rb in relaton-index-0.1.7 vs lib/relaton/index/file_io.rb in relaton-index-0.1.8

- old
+ new

@@ -76,15 +76,24 @@ end # # Save index to storage # - # @param [Array<Hash>] index <description> + # @param [Array<Hash>] index index to save # # @return [void] # def save(index) Index.config.storage.write @file, index.to_yaml + end + + # + # Remove index file from storage + # + # @return [void] + # + def remove + Index.config.storage.remove @file end end end end