Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (25 sloc) 910 Bytes
//
// KWMatchers.h
// Kiwi
//
// Created by Luke Redpath on 17/06/2011.
// Copyright 2011 Allen Ding. All rights reserved.
//
#import <Foundation/Foundation.h>
@class KWUserDefinedMatcherBuilder;
typedef void (^KWMatchersBuildingBlock)(KWUserDefinedMatcherBuilder *);
@class KWUserDefinedMatcher;
@interface KWMatchers : NSObject {
NSMutableDictionary *userDefinedMatchers;
}
+ (id)matchers;
#pragma mark -
#pragma mark Defining Matchers
+ (void)defineMatcher:(NSString *)selectorString as:(KWMatchersBuildingBlock)block;
- (void)defineMatcher:(NSString *)selectorString as:(KWMatchersBuildingBlock)block;
- (void)addUserDefinedMatcherBuilder:(KWUserDefinedMatcherBuilder *)builder;
#pragma mark -
#pragma mark Building Matchers
- (KWUserDefinedMatcher *)matcherForSelector:(SEL)selector subject:(id)subject;
@end
void KWDefineMatchers(NSString *selectorString, KWMatchersBuildingBlock block);
Something went wrong with that request. Please try again.