I have a method that yields, which looks like:
def a_method(*params) # do something yield # do something else end
I want this method
Yes! :)
def a_method(*params) # ... yield if block_given? # ... end