use Proc.new to reduce some conditionals
Proc.new will pick up the passed in block, but since it's a default param, it won't get evaluated unless someone doesn't pass in an app. It will raise an exception if no block is provided.
Showing
想要评论请 注册 或 登录