This gem provides a save_file() method functionality.

In other words, you can save a file with this easily.

I often needed a save_file() functionality among my different projects, so that is why I turned this into a standalone gem, rather than writing a new save_file() functionality every time anew for my projects.

That functionality is bundled into a module called SaveFile. Additionally, convenience methods called save_file() and append_what_into() are provided, and of course several aliases to these.

You can pass the permission bits as third argument to the two main methods of this gem:

  • save_file()
  • append_what_into()

Also note that:

  • write_what_into()

is an alias to save_file().