"Hang Ideas! They are tramps vagabonds knocking at the back door of your mind each taking a little of your substance each carrying away some crumb of that belief in a few simple notions you must cling to if you want to lovie decently and would like to die easy"

Metaphor or simile
Answer : simile

What are they comparing
Answer : Ideas and tramps

This is not a simile.