Converting a dns msg to wireformat -- dnsruby

I’m trying to convert a dnsruby message to wire format. Is there any way
to do that?
Much like toWire() in dnsjava ??

Thanks.