Module: Rubinium::Validator
- Defined in:
- lib/rubinium/validator.rb
Instance Method Summary collapse
Instance Method Details
#validateOpen(test, url) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/rubinium/validator.rb', line 5 def validateOpen(test, url) begin f = Kernel::open(url) rescue StandardError => e test.errors << e.to_s ensure f.close unless f.nil? end end |