.tap from Ruby implemented as a category on NSObject