add clear method to irbrc