Class: Lurker::Validator

Inherits:
JSON::Validator
  • Object
show all
Defined in:
lib/lurker/validator.rb

Instance Method Summary collapse

Instance Method Details

#open(uri) ⇒ Object



4
5
6
7
8
# File 'lib/lurker/validator.rb', line 4

def open(uri)
  Kernel.open(uri)
rescue Errno::ENOENT
  Lurker::JamlDescriptor.new(uri)
end