Add description methods for HTML tokens

This commit is contained in:
iska
2014-10-25 01:07:23 +02:00
parent d4401c0f17
commit 0a92fb8eb4
5 changed files with 27 additions and 6 deletions
+2 -6
View File
@@ -26,13 +26,9 @@
return self;
}
- (instancetype)initWithString:(NSString *)string
- (NSString *)description
{
self = [super init];
if (self) {
_characters = [string copy];
}
return self;
return [NSString stringWithFormat:@"<%@: %p Characters=%@>", self.class, self, _characters];
}
@end