| Inherits from | NSObject |
| Declared in | GBMethodSectionData.h<br />GBMethodSectionData.m |
Definition of a method section.
Method section contains a list of related methods and is used for grouping different groups of methods in the final output. This is only a thin wrapper over an NSArray so it doesn't provide must of validation code found in other classes. It simply defines accessors and mutators for changing the values.
- registerMethod:
Registers the given method to the end of the section's methods list.
sectionName
The name of the section.
methods
The array of section methods in the order of registration.
Registers the given method to the end of the section's methods list.
- (void)registerMethod:(GBMethodData *)methodRegisters the given method to the end of the section's methods list.
As GBMethodSectionData is a thin wrapper over an NSArray , no validation is done, the given object is simply added to the end of the methods array. Client should make sure there is no duplication and implement other constraints. If the array is nil , a new instance is created before adding.
nil . GBMethodSectionData.hGBMethodSectionData.mThe array of section methods in the order of registration.
@property (readonly) NSArray *methodsThe array of section methods in the order of registration.
Each entry is an instance of GBMethodData and should be registered through registerMethod: method.
GBMethodSectionData.h