Method: String#append_to_file
- Defined in:
- lib/pleasant_path/string.rb
#append_to_file(file) ⇒ self
Appends the String to the specified file
. Creates the file if it does not exist, including any necessary parent directories. Returns the String.
61 62 63 64 |
# File 'lib/pleasant_path/string.rb', line 61 def append_to_file(file) file.to_pathname.append_text(self) self end |