Issue #11233 has been updated by Jeremy Evans.


This isn't a bug, it a consequence of the fact that they take an arbitrary number of arguments:

~~~
Module.new.include(Module.new, Module.new, ...)
~~~

Changing it would break code like:

~~~
extensions = []
extensions << Module.new if something
extensions << Module.new if something_else
Module.new.include(*extensions)
~~~

----------------------------------------
Bug #11233: Module#include, Module#prepend can accept no arguments
https://bugs.ruby-lang.org/issues/11233#change-52789

* Author: John Doe
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
`# Module#include, Module#prepend can accept no arguments
Module.new.include
Module.new.prepend
`



-- 
https://bugs.ruby-lang.org/