Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. enum Generator {
  2.  
  3. static func run(targets: [Object]) {
  4.  
  5. for target in targets {
  6. print("## \(target.name) object")
  7. print("### Description")
  8. print("")
  9. print("### Properties")
  10. print("|Name|Value Type|Required|Description|")
  11. print("|---|---|---|---|")
  12. for property in target.properties {
  13. print("|\(property.name)|\(property.valueType.documentationString)|\(property.required)|\(property.description)|")
  14. }
  15. print("")
  16. print("---")
  17. print("")
  18. }
  19.  
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement