mjijackson/citrus — comment on commit 2a79ad93874b687736edf71e4948280dd6d91aee
File: lib/citrus.rb line 403
By mjijackson:

I changed the `respond_to?(:to_path)` to preserve compatibility with 1.8. I guess that in the worst case if the user *does* use a `Pathname` object here under 1.8 and we're doing a `respond_to?(:to_path)`, the only thing that will happen is a `Pathname.new(Pathname.new('some/path'))`, which will just return a `Pathname` anyway.

I put the error behavior in there to mimic the behavior of `Citrus.load`, as it raises a `LoadError` when the file either doesn't exist or is not readable. It's not particularly important to me that we do these checks here, but if we're going to do it one place we should do it in both, right?