-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from IvanUshakov/raw_values
inject manually created objects in blocks assembly
- Loading branch information
Showing
9 changed files
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Source/Component/Initializer/TyphoonParameterInjectedByRawValue.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// TyphoonParameterInjectedByRowValue.h | ||
// Typhoon | ||
// | ||
// Created by Иван Ушаков on 23.05.13. | ||
// Copyright (c) 2013 Jasper Blues. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "TyphoonInjectedParameter.h" | ||
|
||
@interface TyphoonParameterInjectedByRawValue : NSObject <TyphoonInjectedParameter> | ||
|
||
@property(nonatomic, readonly) NSUInteger index; | ||
@property(nonatomic, readonly) TyphoonParameterInjectionType type; | ||
@property(nonatomic, strong, readonly) id value; | ||
|
||
- (id)initWithParameterIndex:(NSUInteger)index value:(id)value; | ||
|
||
|
||
@end |
33 changes: 33 additions & 0 deletions
33
Source/Component/Initializer/TyphoonParameterInjectedByRawValue.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// TyphoonParameterInjectedByRowValue.m | ||
// Typhoon | ||
// | ||
// Created by Иван Ушаков on 23.05.13. | ||
// Copyright (c) 2013 Jasper Blues. All rights reserved. | ||
// | ||
|
||
#import "TyphoonParameterInjectedByRawValue.h" | ||
|
||
@implementation TyphoonParameterInjectedByRawValue | ||
|
||
- (id)initWithParameterIndex:(NSUInteger)index value:(id)value | ||
{ | ||
self = [super init]; | ||
if (self) { | ||
_index = index; | ||
_value = value; | ||
} | ||
return self; | ||
} | ||
|
||
- (TyphoonParameterInjectionType)type | ||
{ | ||
return TyphoonParameterInjectedByRawValueType; | ||
} | ||
|
||
- (void)setInitializer:(TyphoonInitializer*)initializer | ||
{ | ||
//Do nothing. | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters