Webrick http auth

Is there a way to configure webrick to protect RoR application with http
auth just like in the apache?