module Cannon::AutoFromIo
Overview
Adds .to_cannon_io(io)
to the extended type. It does so by iterating
over all instance variables, reading each in sequence, and calling the
constructor which accepts a value for all. This constructor is not created
automatically.
While the constructor needs to accept a value for all instance variables, the order they appear in the prototypes argument list doesn't matter.