Lou H. wrote in post #1164921:
Criteria is just a term used to describe a reason for doing something.
That does not seem to make sense with your sentence:
The design of the Ruby language already includes the basic closure as a
module criteria:
If I apply your substitution then I get
“The design of the Ruby language already includes the basic closure as a
reason to use a module:”
If I need a closure then I use a block but not necessarily a module.
Reasons to use modules are different (reusing a set of methods in
multiple contexts, including classes and instances, tagging a class with
a type tag).
It is the other way round: if a module needs to close over some local
variables then I use a closure.
So in this context our point is that the validity of this concept has
already been determined apriori by the language itself. We just want to
extend on that idea and make it better.
see above
In what ways do modules make this easier? It would seem you just need a
set of methods and blocks in general to do the job.
Sure you can do the job with any Turing machine.
No, I said “methods and blocks”. This is trying to ridicule my question
by exaggerating my statement.
But, what is the point
of having abstractions? These just tend to make the job easier for the
programmer. Our abstractions are those of code Injectors and
decorators.
I still have not seen convincing reasons.
Please refer to the readme file on GitHub or the gem itself for a more
detailed explanation.
You never posted the link and searches [1] and [2] turned up multiple
results which do seem to lead to your code.
[1] Jackbox github at DuckDuckGo
[2] Jackbox github ruby at DuckDuckGo