Closed ChillerDragon closed 9 months ago
The create_header() seems to work fine already. I tried making the code more reusable to add other methods it became really messy. Also I do not see any other methods that need it. Closing this as completed now. If there is more need for argument checking do that via sorbet see https://github.com/ChillerDragon/teeworlds_network/issues/18
Chunk.create_header has a few required keys make sure when its called those are provided. There are probably other methods too where the arguments could be checked.
This is basically implementing typed ruby using a external shell script which is a super weird and probably bad idea. But whatever. It does help detecting runtime errors without running it.