RubyGems Navigation menu

save_file 1.0.22

This class can be used to save a file in a convenient way, by giving you a very simple save-file functionality. I liked the name 'save_file()' a lot, and I found that I was needing such a functionality in many of my projects, so I made a tiny gem that would do exactly this. Of course you can use or and so on but I did not want to deal with file permissions, I just wanted an API that is simple. Usage examples: require 'save_file' save_what_into('test', '/tmp/test.txt') You can also use: SaveFile.write_what_into(what, into) SaveFile.append_what_into(what, into) This project has no external dependencies. Version 1.0.3 made it more clear when to use save_file() and when to use append_into_file(). If you have specific suggestions to make this gem more useful for others, please drop me an email at: Thank you.


  1. 1.0.22 - February 08, 2017 (8.5 KB)
  2. 1.0.21 - October 31, 2016 (8.5 KB)
  3. 1.0.20 - June 08, 2016 (8.5 KB)
  4. 1.0.19 - January 06, 2016 (7.5 KB)
  5. 1.0.18 - June 16, 2014 (7.5 KB)
Show all versions (21 total)


  • Robert A. Heiler



SHA 256 checksum:


Total downloads 18,872

For this version 404

= Copy to clipboard Copied!




Required Ruby Version: >= 2.4.0

Required Rubygems Version: >= 2.6.9