Pages: 1 2 3 4 5 6


I’d Tap That

Ruby 1.9 added a new method tap that is useful for cleaning up code. Here’s the Ruby doc: tap{|x|…} → obj: Yields x to the block, and then returns x. The primary purpose of this method is to “tap into” … Continue reading