Actions
Bug #15411
closedEnhance Tempfile docs
Description
Several small style enhancements + I don't know why the "fake" docs for ::new
were done this way, but they hid the mode:
keyword argument, which once cost me several dozens of minutes to investigate.
Docs currently insist on this call-sequence:
new(basename = "", [tmpdir = Dir.tmpdir], [options])
...insisiting that it will pass all the options to File.new
. So, when I wanted to pass mode
for File, and ... well, it haven't ended well :)
So, I believe that it is better to represent actual call-sequence in the docs, and mention mode
quirks.
Files
Actions
Like0
Like0