RubyGems Navigation menu

save_file 1.0.20

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.20 - June 8, 2016 (8.5 KB)
  2. 1.0.19 - January 6, 2016 (7.5 KB)
  3. 1.0.18 - June 16, 2014 (7.5 KB)
  4. 1.0.17 - May 29, 2014 (7 KB)
  5. 1.0.16 - May 29, 2014 (7 KB)
Show all versions (19 total)


  • Robert A. Heiler



SHA 256 checksum:


Total downloads 15,605

For this version 397

= Copy to clipboard Copied!




Required Ruby Version: >= 2.3.1

Required Rubygems Version: >= 2.6.4