4 ms·
If you have a method that in python would take a function as a parameter then it usually will be passed as a block in ruby. This doesn't really work if you wo
by yxhuvud 16y ago
If you have a method that in python would take a function as a parameter then it usually will be passed as a block in ruby.
This doesn't really work if you would want to pass several procs into a method, but honestly, that is not very common.