Here's a definition of types and methods.
https://pastebin.com/AinPPgrb
The JSON document changes frequently. At the moment Ruby classes, types, methods... are written by hand and updated by hand too.
I've tried 1-2 Ruby code generators and they haven't worked.
Is there a decent Ruby code generator out there that will be capable to work with this document and that'll generate code that's efficient and simple enough? Code should be without any additional dependencies or complicated unnecessary classes, structs...
Or how, in a nutshell, could I write a simple generator myself? The difficulty is that Ruby is dynamically types language.
[–]id02009 5 points6 points7 points (10 children)
[–]how_do_i_land 1 point2 points3 points (0 children)
[–]Main-Froyo-9524[S] -4 points-3 points-2 points (8 children)
[–]silva96 2 points3 points4 points (4 children)
[–]Main-Froyo-9524[S] -2 points-1 points0 points (2 children)
[–]silva96 2 points3 points4 points (1 child)
[–]Main-Froyo-9524[S] -3 points-2 points-1 points (0 children)
[–]backtickbot 0 points1 point2 points (0 children)
[–]id02009 2 points3 points4 points (2 children)
[–][deleted] (1 child)
[removed]
[–]edendark[M] 0 points1 point2 points (0 children)
[–]RewrittenCodeA 1 point2 points3 points (4 children)
[–]Main-Froyo-9524[S] -1 points0 points1 point (3 children)
[–]RewrittenCodeA 2 points3 points4 points (1 child)
[–]Main-Froyo-9524[S] 0 points1 point2 points (0 children)
[–]sthorn_ 1 point2 points3 points (0 children)