add support for options and not truncating offset for IO.write #764
This page is out of date. Refresh to see the latest.
Showing with 21 additions and 8 deletions.
|@@ -1,6 +1,3 @@|
|-fails:IO.write doesn't truncate the file and writes the given string if an offset is given|
|-fails:IO.write accepts a :mode option|
|-fails:IO.write raises an error if readonly mode is specified|
|-fails:IO.write uses encoding from given options, if provided|
|fails:IO.write uses an :open_args option|
|-fails:IO.write doesn't truncate and writes at the given offset after passing empty opts|
|+fails:IO.write disregards other options if :open_args is given|