When a public offense is committed in the presence of a magistrate, he may, by a verbal or written order, command any person to arrest the offender, and may thereupon proceed as if the offender had been brought before him on a warrant of arrest.
R.L. 1910, Sec. 5659.