Hi,
You can have as many mix-ins as you like, which is why the number of
arguments is variable:
"...any arguments passed are treated as objects, and their methods are
copied over ("mixed in") as instance methods of the new class. In
cases of method name overlap, later arguments take precedence o
I have indeed noticed that. I quite often use function without named
arguments and then populate what I need from the arguments collection.
I was wondering why was that so. I mean creating a class does not need
infinite number of arguments, now would it? In the longest case
scenario it needs clas
Hi,
> I was wondering for the longest time why doesn't Class#create have
> arguments?
Class.create does have arguments, details in the docs[1]. The
implementation doesn't use any _named_ arguments, it accesses its
arguments via the `arguments` array (on the first line of the
function, in fact).