simple ruby abstraction for saving data to the file system