Step 1: Notice the ironmaster's behaviour: He was unusually kind to a dirty, ragged stranger, which was surprising.
Step 2: Find the cause: The ironmaster believed that the man was a former comrade from his regiment who had fallen on bad days. He therefore treated him as a friend and asked him to his house.
Final Answer: He took the peddler for his old acquaintance and regimental comrade.