Prints human-readable information about an instance
Switch branches/tags
Nothing to show
Pull request Compare This branch is 19 commits behind neoneye:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AutoDescribe.xcodeproj
AutoDescribe
AutoDescribeTests
.gitignore
README.md

README.md

autoDescribe

Prints human-readable information about an instance.

Sample code

// A class with some properties
@interface TestPerson : NSObject
@property (nonatomic, strong) NSString *firstName;
@property (nonatomic, strong) NSString *lastName;
@property (nonatomic, strong) NSNumber *age;
@end

@implementation TestPerson
// empty
@end

// Create instance of class and invoke autoDescribe
TestPerson *person = [TestPerson new];
person.firstName = @"John";
person.lastName = @"Doe";
person.age = [NSNumber numberWithFloat:33.33];
NSLog(@"%@", [person autoDescribe]);

Output from sample code

firstName=John
lastName=Doe
age=33.3