Class: Matryoshka::External

Inherits:
Object
  • Object
show all
Defined in:
lib/matryoshka/external.rb

Class Method Summary collapse

Class Method Details

.find(uri, options = {}) ⇒ Object



4
5
6
7
8
# File 'lib/matryoshka/external.rb', line 4

def self.find(uri,options = {})
  [200,{}.merge(options),open(uri)]
  rescue
    [404,{}.merge(options),'<p>404 on external</p>']
end