Skip to content

Instantly share code, notes, and snippets.

@darashi
Created November 20, 2009 20:11
Show Gist options
  • Save darashi/239740 to your computer and use it in GitHub Desktop.
Save darashi/239740 to your computer and use it in GitHub Desktop.
tapg: tapp for "g"
def tapg
require 'rubygems'
require 'g'
tap { g block_given? ? yield(self) : self }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment