Tom Swift was a boy inventor (one must not confuse him with Tom Swift, the Australian footballer, especially when one visits Western Australia).
One of the minor characters, a helpful grown-up named Mr. Damon, had a colorful habit of speech. To express excitement, or because he simply could not do otherwise, Mr. Damon blessed whatever came to mind. This page —page 197— from Tom Swift and His Motorcycle, which was published in 1910, shows Mr. Damon blessing everything from his spectacles and his existence to his shoe-leather:
BONUS: Tom Swift books, old and newer, are still being sold. Many are available as free e-books.