Actions
Bug #19721
closedIO#timeout= can be called without required argument
Bug #19721:
IO#timeout= can be called without required argument
Description
f = File.open("a.txt", "w")
f.timeout=() # => nil
IO#timeout= requires an argument (or it's supposed to require it) but if it's called as a method it seems the check is skipped and missing argument is treated as nil value.
If it's called with #send - then argument presence is checked:
f.send :"timeout="
# ...:in `timeout=': wrong number of arguments (given 0, expected 1) (ArgumentError)
Actions