//
//  NSArray+YSMASShorthandAdditions.h
//  Masonry
//
//  Created by Jonas Budelmann on 22/07/13.
//  Copyright (c) 2013 Jonas Budelmann. All rights reserved.
//

#import "NSArray+YSMASAdditions.h"

#ifdef YSMAS_SHORTHAND

/**
 *	Shorthand array additions without the 'ysmas_' prefixes,
 *  only enabled if YSMAS_SHORTHAND is defined
 */
@interface NSArray (YSMASShorthandAdditions)

- (NSArray *)makeConstraints:(void(^)(YSMASConstraintMaker *make))block;
- (NSArray *)updateConstraints:(void(^)(YSMASConstraintMaker *make))block;
- (NSArray *)remakeConstraints:(void(^)(YSMASConstraintMaker *make))block;

@end

@implementation NSArray (YSMASShorthandAdditions)

- (NSArray *)makeConstraints:(void(^)(YSMASConstraintMaker *))block {
    return [self ysmas_makeConstraints:block];
}

- (NSArray *)updateConstraints:(void(^)(YSMASConstraintMaker *))block {
    return [self ysmas_updateConstraints:block];
}

- (NSArray *)remakeConstraints:(void(^)(YSMASConstraintMaker *))block {
    return [self ysmas_remakeConstraints:block];
}

@end

#endif
