Skip to content

Commit

Permalink
Edit some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pengpeng05 authored and xiaofei86 committed Mar 7, 2022
1 parent 671d50e commit b0b154f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CarbonObjC/CarbonObjC/CBNObjectDefinition.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,14 @@ typedef NSObject* _Nonnull(^CBNFactoryDefineCompleted)(CBNObjectContext *context

@interface CBNAttributeDefinitionBuilder : CBNActionDefinitionBuilder

/// Define object's scope is `CBNObjectScope.prototype`. Default scope.
/// Set the local scope (life cycle) of the object
@property (nonatomic, copy, readonly) CBNActionDefinitionBuilder *(^prototype)(void);
/// Define object's scope is `CBNObjectScope.singleton`.
/// Set the singleton scope (life cycle) of the object
@property (nonatomic, copy, readonly) CBNActionDefinitionBuilder *(^singleton)(void);
/// Define object's scope is `CBNObjectScope.singletonWeak`.
/// Set the weak reference singleton scope (life cycle) of the object
@property (nonatomic, copy, readonly) CBNActionDefinitionBuilder *(^singletonWeak)(void);

/// Set the scope (life cycle) of the object
- (CBNActionDefinitionBuilder *(^)(CBNObjectScope *scope))scope;

@end
Expand All @@ -99,7 +100,7 @@ typedef NSObject* _Nonnull(^CBNFactoryDefineCompleted)(CBNObjectContext *context

- (CBNAutowiredDefinitionBuilder *(^)(NSString *property))propertyName;

/// Note: The propertiesName array will overwrite the previous propertyName, so multiple propertyNames or a single propertiesName array are usually used.
/// Note: The propertiesName array will overwrite the previous propertyName, so when setting multiple properties, either use multiple propertyNames or a single propertiesName array.
- (CBNAttributeDefinitionBuilder *(^)(NSArray<NSString *> *properties))propertiesName;

@end
Expand Down

0 comments on commit b0b154f

Please sign in to comment.