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 File.open() or File.new() 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: shevegen@gmail.com Thank you.

Versions:

  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)

Authors:

  • Robert A. Heiler

Owners:

A14d1bca90d7ebeda50dca99aab381b9

SHA 256 checksum:

5cc8efa72fd49a4ff601a96867b158700125527550f981e9b2b189681ae98e82

Total downloads 15,112

For this version 271

Gemfile:
= Copy to clipboard Copied!

install:
=

License:

GPL-2.0

Required Ruby Version: >= 2.3.1

Required Rubygems Version: >= 2.6.4

Links: