It's better add new attributes to Class
definition to use it:
class Message < BinData::Record
uint32 :age # Add :age
end
There's no easy way to add new symbols to a instance.
If you have to do it, you could check this https://stackoverflow.com/a/27701042/15097028
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…