3 ms·
While it is not completely impossible to end up (pun intended) with something like this, you usually follow a coding style that avoids it. Kind of like in Ruby.
by lgreiv 4y ago
While it is not completely impossible to end up (pun intended) with something like this, you usually follow a coding style that avoids it. Kind of like in Ruby.
You have the option to define named methods that yield or to use the short one-parameter syntax where this:
method do |param|
param.some_method
end
becomes
method &.some_method