Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (35 sloc) 1.095 kb
//
// GBCommentArgument.m
// appledoc
//
// Created by Tomaz Kragelj on 19.9.10.
// Copyright (C) 2010, Gentle Bytes. All rights reserved.
//
#import "GBCommentParagraph.h"
#import "GBCommentArgument.h"
@implementation GBCommentArgument
#pragma mark Initialization & disposal
+ (id)argumentWithName:(NSString *)name description:(GBCommentParagraph *)description {
NSParameterAssert(name != nil);
NSParameterAssert([name length] > 0);
NSParameterAssert(description != nil);
GBCommentArgument *result = [self argument];
result.argumentName = name;
result.argumentDescription = description;
return result;
}
+ (id)argument {
GBCommentArgument *result = [[GBCommentArgument alloc] init];
return result;
}
#pragma mark Overriden methods
- (NSString *)description {
return [NSString stringWithFormat:@"Argument %@", self.argumentName];
}
- (NSString *)debugDescription {
return [NSString stringWithFormat:@"%@ %@{ %@ }", [self className], self.argumentName, self.argumentDescription];
}
#pragma mark Properties
@synthesize argumentName;
@synthesize argumentDescription;
@end
Jump to Line
Something went wrong with that request. Please try again.