Module: Lurker::JamlDescriptor::Rescue

Included in:
Validator
Defined in:
lib/lurker/jaml_descriptor.rb

Instance Method Summary collapse

Instance Method Details

#open(uri) ⇒ Object



6
7
8
9
10
# File 'lib/lurker/jaml_descriptor.rb', line 6

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