class MQTT::Packet::Publish

def retain=(arg)

Set the retain flag (true/false)
def retain=(arg)
  @flags[0] = arg.is_a?(Integer) ? (arg == 0x1) : arg
end