Could you add the usecase here? (e.g. "This enables calling `attach_file` with a `Pathname` object.")