rb set_printer method