Sha256: e6cc3b09ed9df84adc6b0b7fa78e4b514daa9b26ff5f4eecd671c889d4cae5c8

Contents?: true

Size: 517 Bytes

Versions: 9

Compression:

Stored size: 517 Bytes

Contents

#import "GHParser+Extensions.h"

#import "GHParser.h"
#import "GHTokenScanner.h"
#import "GHFeature.h"

@implementation GHParser (Extensions)

- (GHFeature *)parse:(NSString *)theSourceFile
{
    GHFeature * feature = [self parseWithTokenScanner: [[GHTokenScanner alloc] initWithContentsOfFile: theSourceFile]];
    if(![feature isKindOfClass:[GHFeature class]] || (![feature.name isKindOfClass:[NSString class]] || feature.name.length == 0)){
        return nil;
    }
    return feature;
}

@end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
xcfit-2.0.6 XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m
xcfit-0.9.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m
xcfit-0.8.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m
xcfit-0.7.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m
xcfit-0.6.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m
xcfit-0.5.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m
xcfit-0.4.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m
xcfit-0.3.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m
xcfit-0.2.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m