Allow custom class that returns true for #remote_file?