How to create methods that accept a block
In Ruby there are many methods that accept blocks, one of the first that comes to mind is the times method that allows us to run specific block X times.
Now it's time to learn how to create a method that can accept (and use) a block.
Everything is d...
blog.cupofcraft.dev3 min read