Skip to content

Instantly share code, notes, and snippets.

@roy
Created February 11, 2011 13:33
Show Gist options
  • Save roy/822341 to your computer and use it in GitHub Desktop.
Save roy/822341 to your computer and use it in GitHub Desktop.
tap enhancement
class Object
def tap(method =nil, *params, &block)
block.call(self) if block
self.send(method, *params) if method
self
end
end
@daxhuiberts
Copy link

WHAZAAAAAAAAAAAAAAAAAAAAP!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment