Open hhyyrylainen opened 5 years ago
So instead of the current ofstream that writes we'd need a class that's used to write (with indentation and write functionality)?
This is about FileGen.rb
, the massive ruby file for generating tons of stuff. And, yes, I'm talking about alternative to directly writing to the file in ruby, instead it would have an object in between that inserts indentation.
This is flagged "good first issue" but isn't very high priority for anything. This is just a good intro to the file generation system.
Besides splitting it into more files it would be good for readability to make an output writer class that would have methods like:
to make the code output code cleaner and easier to read. And also the resulting code