Skip to content

Commit 8822fe3

Browse files
authored
Update README.md
1 parent b7d0179 commit 8822fe3

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,22 @@ NSCoding 和 NSCopying 协议是否实现可以指定:
9292
[YBMFConfig shareConfig].filePartitionMode = YBMFFilePartitionModeApart;
9393
```
9494

95+
### 处理算法自定义
96+
97+
对于工具中的算法,都是通过一些类来处理,默认有实现,如果需要自定义,只需要实现对应的协议并且赋值给配置单例:
98+
```objc
99+
/** 名字处理器 */
100+
@property (nonatomic, strong) id<YBMFNameHandler> nameHander;
101+
/** 文件头部注解处理器 */
102+
@property (nonatomic, strong) id<YBMFFileNoteHandler> fileNoteHander;
103+
/** .h文件代码处理器 */
104+
@property (nonatomic, strong) id<YBMFFileHHandler> fileHHandler;
105+
/** .m文件代码处理器 */
106+
@property (nonatomic, strong) id<YBMFFileMHandler> fileMHandler;
107+
/** 节点作为父节点的属性时 Code 格式处理器 */
108+
@property (nonatomic, strong) id<YBMFCodeForParentHandler> codeForParentHandler;
109+
```
110+
95111

96112
# TODO
97113

0 commit comments

Comments
 (0)