# encoding: utf-8 module LocalPac class PacFileValidator def valid?(file) pac = PAC.source(file.content) pac.find('http://www.example.com') true rescue StandardError false end end end