the librarian picked him up by the scruff of his neck and dangled him reflectively a foot off the ground , just out of reach of a small and elderly wire-haired terrier who was trying to remember how to bite people 's ankles .