1234567891011121314151617181920212223242526272829 |
- //
- // MTLValueTransformer.h
- // Mantle
- //
- // Created by Justin Spahr-Summers on 2012-09-11.
- // Copyright (c) 2012 GitHub. All rights reserved.
- //
-
- #import <Foundation/Foundation.h>
-
- typedef id (^AWSMTLValueTransformerBlock)(id);
-
- //
- // A value transformer supporting block-based transformation.
- //
- @interface AWSMTLValueTransformer : NSValueTransformer
-
- // Returns a transformer which transforms values using the given block. Reverse
- // transformations will not be allowed.
- + (instancetype)transformerWithBlock:(AWSMTLValueTransformerBlock)transformationBlock;
-
- // Returns a transformer which transforms values using the given block, for
- // forward or reverse transformations.
- + (instancetype)reversibleTransformerWithBlock:(AWSMTLValueTransformerBlock)transformationBlock;
-
- // Returns a transformer which transforms values using the given blocks.
- + (instancetype)reversibleTransformerWithForwardBlock:(AWSMTLValueTransformerBlock)forwardBlock reverseBlock:(AWSMTLValueTransformerBlock)reverseBlock;
-
- @end
|