Skip to content

Commit

Permalink
grouped method according to functionality. deprecated match:route wit…
Browse files Browse the repository at this point in the history
…h matchController:route.
  • Loading branch information
jeslyvarghese committed Mar 29, 2014
1 parent a1f78d7 commit c49b753
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HHRouter/HHRouter.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@
typedef id(^HHRouterBlock) (NSDictionary *parms);
@interface HHRouter : NSObject
+ (instancetype)shared;

- (void)map:(NSString *)route toControllerClass:(Class)controllerClass;
- (UIViewController *)match:(NSString *)route __attribute__((deprecated));
- (UIViewController *)matchController:(NSString*)route;

- (void)map:(NSString *)route toBlock:(HHRouterBlock)block;
- (UIViewController *)match:(NSString *)route;
- (HHRouterBlock)matchBlock:(NSString*)route;
- (id)callBlock:(NSString*)route;
@end

0 comments on commit c49b753

Please sign in to comment.