{"action":"created","issue":{"url":"https://api.github.com/repos/appsquickly/Typhoon/issues/380","labels_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/380/comments","events_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/380/events","html_url":"https://github.com/appsquickly/Typhoon/issues/380","id":95239919,"number":380,"title":"Add before and after capability to specify blocks","user":{"login":"JeffBNimble","id":732717,"avatar_url":"https://avatars.githubusercontent.com/u/732717?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBNimble","html_url":"https://github.com/JeffBNimble","followers_url":"https://api.github.com/users/JeffBNimble/followers","following_url":"https://api.github.com/users/JeffBNimble/following{/other_user}","gists_url":"https://api.github.com/users/JeffBNimble/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBNimble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBNimble/subscriptions","organizations_url":"https://api.github.com/users/JeffBNimble/orgs","repos_url":"https://api.github.com/users/JeffBNimble/repos","events_url":"https://api.github.com/users/JeffBNimble/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBNimble/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appsquickly/Typhoon/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-15T16:48:10Z","updated_at":"2015-07-15T23:44:44Z","closed_at":null,"body":"As a Typhoon user,\r\nI would like to specify a block of code (closure) for either/both before and after injections,\r\nSo that I can specify a block that gets executed and passed the instance created by Typhoon.\r\n\r\nIt would be nice to be able to specify blocks in addition to selectors for performBefore: and performAfter.\r\n\r\nFor example:\r\n\r\n- (void)performBeforeInjections:(void (^)(NSObject *instance))executionBlock\r\n- (void)performAfterInjections:(void (^)(NSObject *instance))executionBlock\r\n\r\nWhere the block is passed the instance created as an argument. Of course, implementers would have to cast the instance to the type.\r\n"},"comment":{"url":"https://api.github.com/repos/appsquickly/Typhoon/issues/comments/121777228","html_url":"https://github.com/appsquickly/Typhoon/issues/380#issuecomment-121777228","issue_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/380","id":121777228,"user":{"login":"jasperblues","id":430321,"avatar_url":"https://avatars.githubusercontent.com/u/430321?v=3","gravatar_id":"","url":"https://api.github.com/users/jasperblues","html_url":"https://github.com/jasperblues","followers_url":"https://api.github.com/users/jasperblues/followers","following_url":"https://api.github.com/users/jasperblues/following{/other_user}","gists_url":"https://api.github.com/users/jasperblues/gists{/gist_id}","starred_url":"https://api.github.com/users/jasperblues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasperblues/subscriptions","organizations_url":"https://api.github.com/users/jasperblues/orgs","repos_url":"https://api.github.com/users/jasperblues/repos","events_url":"https://api.github.com/users/jasperblues/events{/privacy}","received_events_url":"https://api.github.com/users/jasperblues/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T23:44:44Z","updated_at":"2015-07-15T23:44:44Z","body":"#258"}}