Skip to content

Commit

Permalink
Merge pull request #298 from yuru-taustahuzau/Serialization_Blocks
Browse files Browse the repository at this point in the history
Added block property preprocessing logic.
  • Loading branch information
nikita-leonov committed May 9, 2014
2 parents 581c337 + 8a0e0ac commit 84041b5
Show file tree
Hide file tree
Showing 62 changed files with 1,910 additions and 735 deletions.
10 changes: 9 additions & 1 deletion Documents/ROADSerialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ RF_ATTRIBUTE(RFSerializableDate, format = @"dd/MM/yyyy HH:mm:ss Z", encodingForm
@property (strong, nonatomic) NSDate *birthday;

RF_ATTRIBUTE(RFSerializableCollection, collectionClass = [Car class])
@property (strong, nonatomic) NSArray *cars;
@property (copy, nonatomic) NSArray *cars;

RF_ATTRIBUTE(RFSerializationCustomHandler, decodingPreprocessor = ^(NSString *string) {
return [NSURL URLWithString:string];
},
encodingPreprocessor = ^(NSURL *website) {
return [website absoluteString];
})
@property (strong, nonatomic) NSURL *website;

@end
```
Expand Down

0 comments on commit 84041b5

Please sign in to comment.