kenichi / angelo

Sinatra-like DSL for Reel that supports WebSockets and SSE
Other
303 stars 23 forks source link

Simplify block_given? by using &block. #35

Closed tommay closed 9 years ago

tommay commented 9 years ago

This simplifies and drys things up re block_given? in minitest/helpers.rb. At least I'm looking at more of the test code now. If you think my code is ugly just say so.

kenichi commented 9 years ago

thanks, i think i had this whacky idea that &block in the method signature made blocks required. don't know why that was in my brain. :+1: