Any person who shall become bail in any civil action, either by giving bail bond to the officer serving the writ therein or by indorsing the writ, or by giving bond to the warden of the adult correctional institutions, may, during the pendency of the action, discharge himself or herself as bail by bringing his or her principal into the court in which the action shall be pending and there delivering him or her into the custody of the court.
R.I. Gen. Laws § 10-11-7