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? # obsolete

Class = "post-text" itemprop = "text">

If I understand your question correctly, you can use the function.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -