Refactor page content generators
This commit is contained in:
14
CHDataManagement/Generator/Blocks/ContentBlock.swift
Normal file
14
CHDataManagement/Generator/Blocks/ContentBlock.swift
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
enum ContentBlock: String, CaseIterable {
|
||||
|
||||
case audio
|
||||
|
||||
case swift
|
||||
|
||||
var processor: BlockProcessor.Type {
|
||||
switch self {
|
||||
case .audio: return AudioBlockProcessor.self
|
||||
case .swift: return SwiftBlockProcessor.self
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user