ruby - How to use conditional to test if a block is passed? -
For example, if I want to implement a function that does some work, if any block is passed, or if it happens, then work. There is no block, how do I write conditional?
If I understand your question correctly, you can use the function.
Comments
Post a Comment